From e9da8f5d20a2210dbda84cf0f6bc1627e925dae2 Mon Sep 17 00:00:00 2001 From: LasNikas Date: Thu, 21 Nov 2024 15:32:37 +0100 Subject: [PATCH] fix resize --- src/refinement/resize.jl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/refinement/resize.jl b/src/refinement/resize.jl index 4bfc60e28..a63dbabd8 100644 --- a/src/refinement/resize.jl +++ b/src/refinement/resize.jl @@ -80,8 +80,6 @@ Base.resize!(system, ::Nothing, capacity_system) = system function Base.resize!(system::WeaklyCompressibleSPHSystem, refinement, capacity_system::Int) (; mass, pressure, density_calculator) = system - refinement.n_particles_before_resize[] = nparticles(system) - resize!(mass, capacity_system) resize!(pressure, capacity_system) @@ -97,8 +95,6 @@ end function Base.resize!(system::EntropicallyDampedSPHSystem, refinement, capacity_system::Int) (; mass, density_calculator) = system - refinement.n_particles_before_resize[] = nparticles(system) - resize!(mass, capacity_system) resize_density!(system, capacity_system, density_calculator)