예제 #1
0
파일: Storage.py 프로젝트: xzhh/espressopp
 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
파일: Storage.py 프로젝트: xzhh/espressopp
 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)