Skip to content

Commit

Permalink
Merge pull request #92 from sharc-md/sharc3preview
Browse files Browse the repository at this point in the history
diagnostics.py: fixed bug for restarted traj
  • Loading branch information
maisebastian authored Dec 13, 2023
2 parents 1bc006a + 99f773d commit e8d6164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ def check_intruders(path, trajectories, INFOS, lis, tana, problem_length):
if not check_printlevel(f):
notpossible = True
prevstep = 0
for line in f:
for iline,line in enumerate(f):
if 'ntering timestep' in line:
tstep = int(line.split()[3])
if tstep == 0:
Expand All @@ -912,7 +912,7 @@ def check_intruders(path, trajectories, INFOS, lis, tana, problem_length):
break
if 'RESTART requested.' in line:
prevstep -= 1
if 'upcoming time step' in line:
if 'time step in restart files' in line:
prevstep += 1
if 'State: ' in line:
intruder = int(line.split()[1])
Expand Down

0 comments on commit e8d6164

Please sign in to comment.