Skip to content

Commit

Permalink
Merge branch 'master' into elphmod
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrossi authored Apr 17, 2024
2 parents fdc9c3a + b59b48b commit fe564c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipi/engine/forces.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def queue(self):

is_tainted = False
for b in range(self.nbeads):
is_tainted = is_tainted or self._forces[b].queue()
is_tainted = self._forces[b].queue() or is_tainted
return is_tainted

def pot_gather(self):
Expand Down Expand Up @@ -1143,7 +1143,7 @@ def queue(self):
is_tainted = False
for ff in self.mforces:
if ff.weight != 0: # do not compute forces which have zero weight
is_tainted = is_tainted or ff.queue()
is_tainted = ff.queue() or is_tainted
return is_tainted

def get_vir(self):
Expand Down

0 comments on commit fe564c2

Please sign in to comment.