Skip to content

Commit 45a2c80

Browse files
authored
Use unique restart filenames in test HDF5single (#318)
1 parent 2f511b7 commit 45a2c80

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

tests/HDF5single/md.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ max_steps=24
2525
atol=1.e-8
2626
[Restart]
2727
input_level=4
28-
input_filename=WF
28+
input_filename=wf.h5
2929
input_type=single_file
3030
output_level=4
31-
output_filename=WF_MD
31+
output_filename=wf_md.h5
3232
output_type=single_file
3333
[Coloring]
3434
scope=global

tests/HDF5single/mgmol.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ initial_type=Random
2525
initial_width=1.5
2626
[Restart]
2727
output_level=4
28-
output_filename=WF
28+
output_filename=wf.h5
2929
output_type=single_file
3030
[Coloring]
3131
scope=global

tests/HDF5single/test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
output = subprocess.check_output(command,shell=True)
4848
lines=output.split(b'\n')
4949

50-
os.remove('WF')
50+
os.remove('wf.h5')
5151

5252
print("Check energy conservation...")
5353
tol = 1.e-4
@@ -71,5 +71,7 @@
7171
print("ERROR needs 4 energy values for checking conservation!")
7272
sys.exit(1)
7373

74+
os.remove('wf_md.h5')
75+
7476
print("Test SUCCESSFUL!")
7577
sys.exit(0)

0 commit comments

Comments
 (0)