Skip to content

Commit

Permalink
Desperate
Browse files Browse the repository at this point in the history
  • Loading branch information
ceriottm committed Nov 16, 2023
1 parent 843a2f9 commit 0a58d41
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/temp/lammps/isofsc-vapor/input.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<properties stride='40' filename='isosc'> [ step, ti_weight, chin_weight, isotope_zetasc_4th(1.1253;O), isotope_zetasc_4th(1.9985;H) ] </properties>
<trajectory filename='pos' stride='1000' bead='0' cell_units='angstrom'> positions{angstrom} </trajectory>
</output>
<total_steps>40</total_steps>
<total_steps>42</total_steps>
<prng>
<seed>32346</seed>
</prng>
Expand Down
2 changes: 1 addition & 1 deletion examples/temp/lammps/isofsc-water/input.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<properties stride='40' filename='isosc'> [ step, ti_weight, chin_weight, isotope_zetasc_4th(1.1253;O), isotope_zetasc_4th(1.9985;H) ] </properties>
<trajectory filename='pos' stride='1000' bead='0' cell_units='angstrom'> positions{angstrom} </trajectory>
</output>
<total_steps>40</total_steps>
<total_steps>42</total_steps>
<prng>
<seed>32345</seed>
</prng>
Expand Down
13 changes: 8 additions & 5 deletions ipi_tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,16 +350,15 @@ def run(self, cwd, nid):
# check driver errors
for driver in drivers:
driver_out, driver_err = driver.communicate(timeout=60)
assert driver.returncode == 0, "DRIVER ERROR OCCURRED: {}".format(
assert driver.returncode == 0, "Driver error occurred: {}".format(
driver_err
)

# check i-pi errors
ipi_out, ipi_error = ipi.communicate(timeout=60)
assert ipi.returncode == 0, "IPI ERROR OCCURRED: {}".format(ipi_error)
assert ipi.returncode == 0, "i-PI error occurred: {}".format(ipi_error)

except sp.TimeoutExpired:
print(" TIMEOUT during {} test ", str(cwd))

try:
ipi_out, ipi_error = ipi.communicate(timeout=2)
Expand All @@ -372,8 +371,7 @@ def run(self, cwd, nid):
driver_out, driver_err = "", "Could not get outputs from drivers"
pass

raise RuntimeError(
"Time is out. Aborted during {} test. \
print("Timeout during {} test \
**** i-PI output **** \
Error {} \
Output {} \
Expand All @@ -384,6 +382,11 @@ def run(self, cwd, nid):
str(cwd),
ipi_out, ipi_error,
driver_out, driver_err
) )

raise RuntimeError(
"Time is out. Aborted during {} test.".format(
str(cwd),
)
)

Expand Down

0 comments on commit 0a58d41

Please sign in to comment.