def removeParticle(self, pid): n = pmi.reduce(pmi.SUM, self.pmiobject, 'removeParticle', pid) if n == 0: print("WARNING: Particle ", pid, " does not exist") elif n > 1: print("ERROR: Particle ", pid, " did exist more than once !") print(" This should never happen !!!")
def removeParticle(self, pid): n = pmi.reduce(pmi.SUM, self.pmiobject, 'removeParticle', pid) if n == 0: print "WARNING: Particle ", pid, " does not exist" elif n > 1: print "ERROR: Particle ",pid, " did exist more than once !" print " This should never happen !!!"
def particleExists(self, pid): return pmi.reduce(pmi.BOR, self.pmiobject, 'particleExists', pid)