Skip to content

Commit

Permalink
todo: check gauss legendre s=2
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMartinon committed Nov 21, 2024
1 parent 8258b97 commit d1d59c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function setWorkArray(docp::DOCP{ <: GenericIRK}, xu, time_grid, v)
if docp.dim_OCP_x == 1
xij = work[end]
else
@views xij = work[end-docp.dim_OCP_x+1:end]
@views xij = work[end-docp.dim_OCP_x+1:end] #seems to displace the allocs somehow...
end
# dynamics for stage equation k_i^j = f(t_i^j, x_i^j, u_i, v)
docp.ocp.dynamics((@view work[offset+1:offset+docp.dim_OCP_x]), tij, xij, ui, v)
Expand Down

0 comments on commit d1d59c4

Please sign in to comment.