Skip to content

Commit

Permalink
resize refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
LasNikas committed Nov 20, 2024
1 parent 3b12924 commit 75d0564
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/refinement/resize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,14 @@ function Base.resize!(system::WeaklyCompressibleSPHSystem, refinement, capacity_

resize!(mass, capacity_system)
resize!(pressure, capacity_system)

resize_density!(system, capacity_system, density_calculator)

resize_cache!(system, capacity_system)

resize_refinement!(system)

return system
end

function Base.resize!(system::EntropicallyDampedSPHSystem, refinement, capacity_system::Int)
Expand All @@ -95,10 +100,13 @@ function Base.resize!(system::EntropicallyDampedSPHSystem, refinement, capacity_
refinement.n_particles_before_resize[] = nparticles(system)

resize!(mass, capacity_system)

resize_density!(system, capacity_system, density_calculator)

resize_cache!(system, capacity_system)

resize_refinement!(system)

return system
end

Expand Down

0 comments on commit 75d0564

Please sign in to comment.