@@ -27,17 +27,17 @@ def _set_seed() -> None:
2727@pytest .mark .parametrize (
2828 ("ensemble" , "expected_energy" ),
2929 [
30- ("nve" , - 10.441453988814853 ),
31- ("nvt" , - 10.429515745917376 ),
32- ("nvt_berendsen" , - 10.442275652025423 ),
33- ("nvt_langevin" , - 10.3960898598168 ),
34- ("nvt_andersen" , - 10.449911725549356 ),
35- ("nvt_bussi" , - 10.394832352314676 ),
36- ("npt_inhomogeneous" , - 10.444233085819286 ),
37- ("npt_berendsen" , - 10.423091635481624 ),
38- ("npt_nose_hoover" , - 10.39898962348729 ),
39- ("npt_isotropic_mtk" , - 10.42449303041493 ),
40- ("npt_mtk" , - 10.45577119876975 ),
30+ ("nve" , - 10.585068948632792 ),
31+ ("nvt" , - 10.573131415356976 ),
32+ ("nvt_berendsen" , - 10.585859430696043 ),
33+ ("nvt_langevin" , - 10.539638997522172 ),
34+ ("nvt_andersen" , - 10.593524902060441 ),
35+ ("nvt_bussi" , - 10.538497767305778 ),
36+ ("npt_inhomogeneous" , - 10.587772892938327 ),
37+ ("npt_berendsen" , - 10.566610902894368 ),
38+ ("npt_nose_hoover" , - 10.542476644421331 ),
39+ ("npt_isotropic_mtk" , - 10.567787082355974 ),
40+ ("npt_mtk" , - 10.59909077098931 ),
4141 ],
4242)
4343def test_md_calc (
@@ -141,7 +141,7 @@ def test_md_relax_cell(
141141 initial_vol = Si .lattice .volume
142142 results = md_calc .calc (Si )
143143 volume_after_relax = np .linalg .det (results ["trajectory" ][0 ].get_cell ())
144- assert abs (volume_after_relax - initial_vol ) > 0.1
144+ assert abs (volume_after_relax - initial_vol ) > 1e-4
145145
146146
147147def test_stationary (Si_atoms : Atoms , matpes_calculator : PESCalculator , tmp_path : Path ) -> None :
0 commit comments