Skip to content

Commit

Permalink
fix resizing for new fsal memory
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 18, 2024
1 parent 9acf18b commit 23cc8d5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ function resize!(integrator::ODEIntegrator, i::Int)
# may be required for things like units
c !== nothing && resize!(c, i)
end
resize!(integrator.fsalfirst, i)
resize!(integrator.fsallast, i)
resize_f!(integrator.f, i)
resize_nlsolver!(integrator, i)
resize_J_W!(cache, integrator, i)
Expand All @@ -233,6 +235,8 @@ function resize!(integrator::ODEIntegrator, i::NTuple{N, Int}) where {N}
for c in full_cache(cache)
resize!(c, i)
end
resize!(integrator.fsalfirst, i)
resize!(integrator.fsallast, i)
resize_f!(integrator.f, i)
# TODO the parts below need to be adapted for implicit methods
isdefined(integrator.cache, :nlsolver) && resize_nlsolver!(integrator, i)
Expand Down

0 comments on commit 23cc8d5

Please sign in to comment.