aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Resampling/LevelingThinning.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2022-06-02 23:43:53 +0200
committerGravatar GitHub <noreply@github.com> 2022-06-02 14:43:53 -0700
commit57564a09f01a13b315447d7ab942ddd18d1281af (patch)
tree60f8baf45df96160b05717c2c46298e1d82b85ff /Source/Particles/Resampling/LevelingThinning.cpp
parent81619e11b45c6621553e96601682c531c3cc49a3 (diff)
downloadWarpX-57564a09f01a13b315447d7ab942ddd18d1281af.tar.gz
WarpX-57564a09f01a13b315447d7ab942ddd18d1281af.tar.zst
WarpX-57564a09f01a13b315447d7ab942ddd18d1281af.zip
Move warning logger in ablastr (#3154)
* initial work to move the Warning Logger into ablastr * progress with warn manager class * moved Warning Logger in ablastr * fixed bugs * Fix: `SpectralFieldDataRZ.cpp` Missing include for `WarpX::getCosts(lev);` Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Particles/Resampling/LevelingThinning.cpp')
-rw-r--r--Source/Particles/Resampling/LevelingThinning.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp
index 842c28884..cf9ca9ba9 100644
--- a/Source/Particles/Resampling/LevelingThinning.cpp
+++ b/Source/Particles/Resampling/LevelingThinning.cpp
@@ -10,7 +10,8 @@
#include "Utils/ParticleUtils.H"
#include "Utils/TextMsg.H"
#include "Utils/WarpXUtil.H"
-#include "WarpX.H"
+
+#include <ablastr/warn_manager/WarnManager.H>
#include <AMReX.H>
#include <AMReX_BLassert.H>
@@ -38,7 +39,7 @@ LevelingThinning::LevelingThinning (const std::string species_name)
"Resampling target ratio should be strictly greater than 0");
if (m_target_ratio <= 1._rt)
{
- WarpX::GetInstance().RecordWarning("Species",
+ ablastr::warn_manager::WMRecordWarning("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");