Skip to content

Commit

Permalink
fixed files form Math #39
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 09d74bb commit ea732c5
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,15 @@ public void integrate(final ExpandableStatefulODE equations, final double t)
}

stepSize = hNew;
if (forward) {
if (stepStart + stepSize >= t) {
stepSize = t - stepStart;
}
} else {
if (stepStart + stepSize <= t) {
stepSize = t - stepStart;
}
}

// next stages
for (int k = 1; k < stages; ++k) {
Expand Down

0 comments on commit ea732c5

Please sign in to comment.