From 037c277dae9dcbbefe19ac544e44457f3b4d7812 Mon Sep 17 00:00:00 2001 From: David Hendriks <davidhendriks93@gmail.com> Date: Fri, 15 Jan 2021 12:32:33 +0000 Subject: [PATCH] testing with some rotation --- binarycpython/utils/grid.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py index eb34056e7..f0ff583fa 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 -- GitLab