From 75d05645ef8ab94681dd7b3ce61f71baf541082e Mon Sep 17 00:00:00 2001 From: LasNikas Date: Wed, 20 Nov 2024 15:43:41 +0100 Subject: [PATCH] resize refinement --- src/refinement/resize.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/refinement/resize.jl b/src/refinement/resize.jl index 6e5f48971..4bfc60e28 100644 --- a/src/refinement/resize.jl +++ b/src/refinement/resize.jl @@ -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) @@ -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