Skip to content

Commit 85918ea

Browse files
committed
debug: RungeKutta diff cache chuck size nx+2
1 parent 721d825 commit 85918ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/solver.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
"Get the `f!` and `h!` functions for Runge-Kutta solver."
4545
function get_solver_functions(NT::DataType, solver::RungeKutta, fc!, hc!, Ts, _ , nx, _ , _ )
4646
Ts_inner = Ts/solver.supersample
47-
Nc = nx + 1
47+
Nc = nx + 2
4848
xcur_cache::DiffCache{Vector{NT}, Vector{NT}} = DiffCache(zeros(NT, nx), Nc)
4949
k1_cache::DiffCache{Vector{NT}, Vector{NT}} = DiffCache(zeros(NT, nx), Nc)
5050
k2_cache::DiffCache{Vector{NT}, Vector{NT}} = DiffCache(zeros(NT, nx), Nc)

0 commit comments

Comments
 (0)