Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit f061f003 authored by Anthony's avatar Anthony
Browse files

Avoid infinite loop when the nbasmax is already fine.

parent b2b92c5a
......@@ -72,9 +72,13 @@ class trunc:
with open("check.out","a+") as foo:
foo.write("Step 1 iter. {0}, maxops: {1}->max_bas : {2}\n".format(i, self.max_ops_num, max_bas))
INFO("Step 1 iter. {0}, maxops: {1}->max_bas : {2}".format(i, self.max_ops_num, max_bas))
if max_bas < self.nbasmax:
break
i+=1
hydrosuper.fetch(part)
comm.Barrier()
if max_bas <= self.nbasmax:
break
# Step 2 : HTUs going to the same neighbour
i = 1
......@@ -107,7 +111,9 @@ class trunc:
comm.Barrier()
hydrosuper.fetch(part)
#comm.Barrier()
i += 1
i += 1
if max_bas <= self.nbasmax:
break
# Step 3 : HTUs with the same ID
......@@ -138,7 +144,9 @@ class trunc:
INFO("Step 3 iter. {0} (halo) maxops: {1}->max_bas : {2}".format(i, self.max_ops_num_halo, max_bas))
hydrosuper.fetch(part)
comm.Barrier()
i += 1
i += 1
if max_bas <= self.nbasmax:
break
# Step 4 : HTUs going to the same point
......@@ -155,6 +163,8 @@ class trunc:
hydrosuper.fetch(part)
comm.Barrier()
i += 1
if max_bas <= self.nbasmax:
break
# Step 5 : Brutal method
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment