Skip to content

Commit

Permalink
Fix n_elements in resizing containers
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Oct 2, 2023
1 parent 9e41775 commit fafb9ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/time_integration/methods_SSP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ function Base.resize!(integrator::SimpleIntegratorSSP, new_size)
resize!(integrator.r0, new_size)

# Resize container
resize!(integrator.p, new_size)
# new_size = n_variables * n_nodes^n_dims * n_elements
n_elements = nelements(integrator.p.solver, integrator.p.cache)
resize!(integrator.p, n_elements)
end

function Base.resize!(semi::AbstractSemidiscretization, new_size)
Expand Down

0 comments on commit fafb9ef

Please sign in to comment.