Skip to content

Commit 410a90f

Browse files
authored
Fix RK4 stage weighting to keep amplitude bounded (#375)
1 parent 9c58156 commit 410a90f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/ode_solvers/runge_kutta.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ struct RKODESolver {
103103
// Calculate k_i s
104104
y = F(i,ks[ord], t);
105105
ks[ord][i] = y;
106-
y = (eta * bs[i]) * y;
106+
y = (eta * bs[ord]) * y;
107107

108108
if (Ks[i] == NULL) {
109109
xs[i] = xs[i] + y;

0 commit comments

Comments
 (0)