Skip to content

Commit

Permalink
fix resize
Browse files Browse the repository at this point in the history
  • Loading branch information
LasNikas committed Nov 21, 2024
1 parent 9446c41 commit e9da8f5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/refinement/resize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand Down

0 comments on commit e9da8f5

Please sign in to comment.