Skip to content
Snippets Groups Projects
Commit d9a383c4 authored by Kurt A. O'Hearn's avatar Kurt A. O'Hearn
Browse files

PuReMD-old: update tools/run_sim.py to get correct value for total simulation time.

parent a759534a
No related branches found
No related tags found
No related merge requests found
......@@ -507,9 +507,9 @@ restart_freq 0 ! 0: do not output any restart f
with open(out_file, 'r') as fp:
for line in fp:
line = line.split()
if line[0] == 'total:':
if line[0] == 'Total' and line[1] == 'Simulation' and line[2] == 'Time:':
try:
total_time = float(line[1])
total_time = float(line[3])
except Exception:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment