Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions PyDSTool/Generator/Vode_ODEsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def compute(self, trajname, dirn='f', ics=None):
num_points += 1
if not breakwhile:
try:
extralist[self.numpars:listend] = [f(solver.t + self.globalt0,
extralist[self.numpars:listend] = [f(tmesh[0] + self.globalt0,
self.checklevel)
for f in inputVarList]
except ValueError:
Expand All @@ -654,7 +654,12 @@ def compute(self, trajname, dirn='f', ics=None):
'External input call caused t out of range error: t = %f'
% solver.t)
raise
solver.set_f_params(extralist)
except IndexError:
# no points left in tmesh, move on and let re-loop catch and break
# to end integration
pass
else:
solver.set_f_params(extralist)
breakwhile = not solver.successful()
# Check that any terminal events found terminated the code correctly
if first_found_t is not None:
Expand Down