diff --git a/src/refinement/refinement.jl b/src/refinement/refinement.jl index c2086b711..8512a9d5f 100644 --- a/src/refinement/refinement.jl +++ b/src/refinement/refinement.jl @@ -8,6 +8,7 @@ struct ParticleRefinement{SP, RC, ELTYPE} refinement_criteria :: RC max_spacing_ratio :: ELTYPE mass_ref :: Vector{ELTYPE} # length(mass_ref) == nparticles + delete_candidates :: Vector{Bool} # length(delete_candidates) == nparticles n_particles_before_resize :: Ref{Int} n_new_particles :: Ref{Int} end @@ -22,7 +23,7 @@ function ParticleRefinement(; refinement_pattern, max_spacing_ratio, end return ParticleRefinement(refinement_pattern, refinement_criteria, max_spacing_ratio, - mass_ref, Ref(0), Ref(0)) + mass_ref, delete_candidates, Ref(0), Ref(0)) end resize_refinement!(system) = system