Пример #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 !!!")
Пример #2
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 !!!"
Пример #3
0
 def particleExists(self, pid):
     return pmi.reduce(pmi.BOR, self.pmiobject, 'particleExists', pid)
Пример #4
0
 def particleExists(self, pid):
     return pmi.reduce(pmi.BOR, self.pmiobject, 'particleExists', pid)