@@ -158,7 +158,7 @@ def do_Morse_ASE(tmp_path, monkeypatch, using_mpi, max_iter=None):
158158 assert len (list (tmp_path .glob ('Morse_ASE.test.traj.*xyz' ))) == 1
159159 assert len (list (ase .io .read (tmp_path / 'Morse_ASE.test.traj.extxyz' , ':' ))) == int (np .ceil (max_iter_use / traj_interval ))
160160
161- # from test run 6/13 /2025, when max iter was extended to 110 to catch deadlock in old buggy snapshot step_size writing
161+ # from test run 6/20 /2025, when cell_shear_per_rt3_atom default was increased
162162 if using_mpi :
163163 samples_fields_ref = np .asarray ([1.09000000e+02 , 8.02719236e+00 , 1.28609799e+04 , 1.60000000e+01 ])
164164 else :
@@ -172,9 +172,7 @@ def do_Morse_ASE(tmp_path, monkeypatch, using_mpi, max_iter=None):
172172 # tolerance loosened so that restart, which isn't perfect due to finite precision in
173173 # saved cofig file, still passes
174174 if not np .allclose (samples_fields , samples_fields_ref , rtol = 0.02 ):
175- print ("final samples line test" , samples_fields )
176- print ("final samples line ref " , samples_fields_ref )
177- assert False
175+ assert False , f"test { samples_fields } ref { samples_fields_ref } "
178176
179177 # this will fail if number of steps is not divisible by N_samples interval, because
180178 # clone_hist always saves every line. Also, clone_hist is a hack that's truncated by
@@ -243,21 +241,19 @@ def do_EAM_LAMMPS(tmp_path, monkeypatch, using_mpi, max_iter=None):
243241 assert len (list (tmp_path .glob ('EAM_LAMMPS.test.traj.*xyz' ))) == 1
244242 assert len (list (ase .io .read (tmp_path / 'EAM_LAMMPS.test.traj.extxyz' , ':' ))) == max_iter_use // traj_interval
245243
246- # from test run 12/8/2022
244+ # from test run 6/20/2025 when cell shear default was increased
247245 if using_mpi :
248- fields_ref = np .asarray ([2.99000000e+02 , - 3.91163426e +02 , 1.08674253e +04 , 1.60000000e+01 , 1.87500000e-01 , 8.12500000e-01 ])
246+ fields_ref = np .asarray ([2.99000000e+02 , - 3.90328931e +02 , 1.99365520e +04 , 1.60000000e+01 , 1.87500000e-01 , 8.12500000e-01 ])
249247 else :
250- fields_ref = np .asarray ([299 , - 366.1823642208 , 6004.3693892916 , 16.0000000000 , 0.2500000000 , 0.7500000000 ])
248+ fields_ref = np .asarray ([2.99000000e+02 , - 3.90994404e+02 , 1.45640509e+04 , 1.60000000e+01 , 1.87500000e-01 , 8.12500000e-01 ])
251249
252250 with open (tmp_path / 'EAM_LAMMPS.test.NS_samples' ) as fin :
253251 for l in fin :
254252 pass
255253 fields = np .asarray ([float (f ) for f in l .strip ().split ()])
256254
257255 if not np .allclose (fields , fields_ref ):
258- print ("final line test" , fields )
259- print ("final line ref " , fields_ref )
260- assert False
256+ assert False , f"test { fields } ref { fields_ref } "
261257
262258
263259def do_pressure (tmp_path , monkeypatch , using_mpi ):
@@ -308,7 +304,7 @@ def do_pressure(tmp_path, monkeypatch, using_mpi):
308304
309305 Vfirst = float (lfirst .strip ().split ()[2 ])
310306 Vlast = float (llast .strip ().split ()[2 ])
311- assert Vfirst / Vlast > 20
307+ assert Vfirst / Vlast > 10
312308
313309
314310def do_sGC (tmp_path , monkeypatch , using_mpi ):
@@ -366,4 +362,4 @@ def do_sGC(tmp_path, monkeypatch, using_mpi):
366362 f_13_last , f_29_last = [float (f ) for f in llast .strip ().split ()[4 :6 ]]
367363
368364 assert f_29_first / f_13_first == 1.0
369- assert f_29_last / f_13_last > 5
365+ assert f_29_last / f_13_last > 4
0 commit comments