Skip to content

Commit

Permalink
Loosen test tolerance of mcpdft scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewRHermes committed Sep 27, 2024
1 parent fbe78aa commit c85a2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscf/mcpdft/test/test_mcpdft.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def test_scanner(self):
e_tot = mc_scan(mol0)
e_states_fp = lib.fp(np.sort(mc_scan.e_states))
e_states_fp_ref = lib.fp(np.sort(mc0.e_states))
self.assertAlmostEqual(e_tot, mc0.e_tot, delta=1e-6)
self.assertAlmostEqual(e_tot, mc0.e_tot, delta=2e-6)
self.assertAlmostEqual(e_states_fp, e_states_fp_ref, delta=5e-6)
mc2 = mcpdft.CASCI(mcp1[1][0], "tPBE", 5, 2)
mc2.fcisolver.nroots = 5
Expand Down

0 comments on commit c85a2d1

Please sign in to comment.