Beispiel #1
0
 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 !!!"
Beispiel #2
0
 def particleExists(self, pid):
     return pmi.reduce(pmi.BOR, self.pmiobject, 'particleExists', pid)