Commit 55bbb706 authored by David Hendriks's avatar David Hendriks
Browse files

Updated code to handle with pycapsules. Assignment of memory is only done...

Updated code to handle with pycapsules. Assignment of memory is only done within the multiprocessing process/thread, otherwise we cant  use multiprocessing
parent 4e6c1662
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -848,7 +848,6 @@ class Population:
        """

        binary_cmdline_string = self._return_argline(full_system_dict)
        print(binary_cmdline_string)

        persistent_data_memaddr = -1
        if self.bse_options.get("ensemble", 0) == 1:
@@ -1143,8 +1142,7 @@ class Population:
        # ### Custom logging code:
        self._set_custom_logging()

        ### Load store: Make sure this actually works.
        self.grid_options["_store_memaddr"] = _binary_c_bindings.return_store_memaddr()
        # ### Load store: Make sure this actually works.

        ### ensemble: make some checks for this
        ## check the settings and set all the warnings.
@@ -1290,9 +1288,6 @@ class Population:
        # Unload functions
        # TODO: unload functions

        # Unload store
        _binary_c_bindings.free_store_memaddr(self.grid_options["_store_memaddr"])

        # Unload/free custom_logging_code
        # TODO: cleanup custom logging code.