예제 #1
0
파일: aims.py 프로젝트: PHOTOX/fuase
 def get_stress(self, atoms):
     if ('compute_numerical_stress' not in self.parameters and
         'compute_analytical_stress' not in self.parameters):
         raise NotImplementedError
     return FileIOCalculator.get_stress(self, atoms)
예제 #2
0
 def get_stress(self, atoms):
     if ('compute_numerical_stress' not in self.parameters
             and 'compute_analytical_stress' not in self.parameters):
         raise PropertyNotImplementedError
     return FileIOCalculator.get_stress(self, atoms)
예제 #3
0
 def get_stress(self, atoms):
     if self.calculate_forces and self.pbc:
         return FileIOCalculator.get_stress(self, atoms)
     else:
         raise PropertyNotImplementedError