Commit e5a7ad5b authored by Anthony's avatar Anthony
Browse files

Small improvement in Truncate

parent 8be1ae13
...@@ -213,7 +213,7 @@ class trunc: ...@@ -213,7 +213,7 @@ class trunc:
for k in range(len(self.landcorelist)): for k in range(len(self.landcorelist)):
changes = self.get_changes_step2(k, neigh_domain) changes = self.get_changes_step2(k, neigh_domain)
if len(changes)>1: if len(changes)>0:
for ch in changes: for ch in changes:
orig_ops = self.numops[self.landcorelist[k]] orig_ops = self.numops[self.landcorelist[k]]
if orig_ops < self.numop: if orig_ops < self.numop:
...@@ -243,7 +243,7 @@ class trunc: ...@@ -243,7 +243,7 @@ class trunc:
for k in range(len(self.landcorelist)): for k in range(len(self.landcorelist)):
changes = self.get_changes_step3(k, neigh_domain) changes = self.get_changes_step3(k, neigh_domain)
if len(changes)>1: if len(changes)>0:
for ch in changes: for ch in changes:
orig_ops = self.numops[self.landcorelist[k]] orig_ops = self.numops[self.landcorelist[k]]
if orig_ops < self.numop: if orig_ops < self.numop:
......
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