Commit 3d52c85c authored by Eric Hermes's avatar Eric Hermes

Merge branch 'psi4_fix' into 'master'

Psi4 fix

See merge request !1546
parents d110d12c 3038a239
Pipeline #100995263 passed with stages
in 7 minutes and 13 seconds
......@@ -130,6 +130,7 @@ class Psi4(Calculator):
elif self.parameters['multiplicity'] is not None:
result += '0 {}\n'.format(self.parameters['multiplicity'])
result += 'no_reorient'
if not os.path.isdir(
......@@ -9,13 +9,15 @@ from ase.calculators.psi4 import Psi4
def main():
atoms = molecule('H2O')
atoms.rotate(30, 'x')
calc = Psi4(basis='3-21G')
# Calculate forces ahead of time, compare against finite difference after
# checking the psi4-calc.dat file
assert_allclose(atoms.get_potential_energy(), -2056.785854116349,
assert_allclose(atoms.get_potential_energy(), -2056.785854116688,
rtol=1e-4, atol=1e-4)
# Test the reader
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment