diff options
Diffstat (limited to 'Source/Particles/Resampling')
-rw-r--r-- | Source/Particles/Resampling/LevelingThinning.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp index 33ad87630..716b0d2ab 100644 --- a/Source/Particles/Resampling/LevelingThinning.cpp +++ b/Source/Particles/Resampling/LevelingThinning.cpp @@ -9,6 +9,7 @@ #include "Particles/WarpXParticleContainer.H" #include "Utils/ParticleUtils.H" #include "Utils/WarpXUtil.H" +#include "WarpX.H" #include <AMReX.H> #include <AMReX_BLassert.H> @@ -36,8 +37,10 @@ LevelingThinning::LevelingThinning (const std::string species_name) "Resampling target ratio should be strictly greater than 0"); if (m_target_ratio <= 1._rt) { - amrex::Warning("WARNING: target ratio for leveling thinning is smaller or equal to one." - " It is possible that no particle will be removed during resampling"); + WarpX::GetInstance().RecordWarning("Species", + "For species '" + species_name + "' " + + "target ratio for leveling thinning is smaller or equal to one." + + "It is possible that no particle will be removed during resampling"); } queryWithParser(pp_species_name, "resampling_algorithm_min_ppc", m_min_ppc); |