diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py index eb34056e793fb824b45db33ae5d0a7eb0ee8c608..f0ff583fa1eb195a389cc153856862aa14e069a8 100644 --- a/binarycpython/utils/grid.py +++ b/binarycpython/utils/grid.py @@ -918,7 +918,7 @@ class Population: system = next(generator) # Check if the ID is the correct one for this process - if (localcounter + ID) % self.grid_options["amt_cores"] == 0: + if (localcounter + (ID+round_number_mod)) % self.grid_options["amt_cores"] == 0: # Combine that with the other settings full_system_dict = self.bse_options.copy() @@ -950,6 +950,8 @@ class Population: # Has to be here because this one is used for the (localcounter+ID) % (self..) localcounter += 1 + round_number_mod = (localcounter+1)%self.grid_options["amt_cores"] + print("round nr: ",round_number_mod) # Handle ensemble output: is ensemble==1, then either directly write that data to a file, or combine everything into 1 file. ensemble_json = {} # Make sure it exists already