Skip to content

Commit 469fef0

Browse files
authored
Merge pull request #67 from JuliaControl/diffcache_rk4
debug: `RungeKutta` diff cache chuck size `nx+2`
2 parents 721d825 + 85918ea commit 469fef0

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)