aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Resampling/LevelingThinning.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2022-10-10 20:36:14 +0200
committerGravatar GitHub <noreply@github.com> 2022-10-10 11:36:14 -0700
commite9cc65ffeb0684a97618b67c2164d95ea497226c (patch)
treeed65f7ac86cc4e8945021dc36a79c8bc246c150d /Source/Particles/Resampling/LevelingThinning.cpp
parent56e04c1b911f9399662c4ff9ecf6630d686cc220 (diff)
downloadWarpX-e9cc65ffeb0684a97618b67c2164d95ea497226c.tar.gz
WarpX-e9cc65ffeb0684a97618b67c2164d95ea497226c.tar.zst
WarpX-e9cc65ffeb0684a97618b67c2164d95ea497226c.zip
Partial refactoring of the utils directory (#3404)
* initial work to clean WarpX Utils * remove AMRCore from Ionization tables * progress * refactoring of a part of the utils directory * fix bug * fixed bug * fixed bug * remove debug line accidentally slipped into the code * remove debug line accidentally slipped into the code * remove debug line accidentally slipped into the code * cleaning * fixed bug
Diffstat (limited to 'Source/Particles/Resampling/LevelingThinning.cpp')
-rw-r--r--Source/Particles/Resampling/LevelingThinning.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp
index cf9ca9ba9..2db192f61 100644
--- a/Source/Particles/Resampling/LevelingThinning.cpp
+++ b/Source/Particles/Resampling/LevelingThinning.cpp
@@ -7,9 +7,9 @@
#include "LevelingThinning.H"
#include "Particles/WarpXParticleContainer.H"
+#include "Utils/Parser/ParserUtils.H"
#include "Utils/ParticleUtils.H"
#include "Utils/TextMsg.H"
-#include "Utils/WarpXUtil.H"
#include <ablastr/warn_manager/WarnManager.H>
@@ -34,7 +34,8 @@ LevelingThinning::LevelingThinning (const std::string species_name)
using namespace amrex::literals;
amrex::ParmParse pp_species_name(species_name);
- queryWithParser(pp_species_name, "resampling_algorithm_target_ratio", m_target_ratio);
+ utils::parser::queryWithParser(
+ pp_species_name, "resampling_algorithm_target_ratio", m_target_ratio);
WARPX_ALWAYS_ASSERT_WITH_MESSAGE( m_target_ratio > 0._rt,
"Resampling target ratio should be strictly greater than 0");
if (m_target_ratio <= 1._rt)
@@ -45,7 +46,8 @@ LevelingThinning::LevelingThinning (const std::string species_name)
"It is possible that no particle will be removed during resampling");
}
- queryWithParser(pp_species_name, "resampling_algorithm_min_ppc", m_min_ppc);
+ utils::parser::queryWithParser(
+ pp_species_name, "resampling_algorithm_min_ppc", m_min_ppc);
WARPX_ALWAYS_ASSERT_WITH_MESSAGE(m_min_ppc >= 1,
"Resampling min_ppc should be greater than or equal to 1");
}