From e9cc65ffeb0684a97618b67c2164d95ea497226c Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 10 Oct 2022 20:36:14 +0200 Subject: 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 --- Source/Particles/Resampling/ResamplingTrigger.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Source/Particles/Resampling/ResamplingTrigger.cpp') diff --git a/Source/Particles/Resampling/ResamplingTrigger.cpp b/Source/Particles/Resampling/ResamplingTrigger.cpp index 220b65f84..53883f1e9 100644 --- a/Source/Particles/Resampling/ResamplingTrigger.cpp +++ b/Source/Particles/Resampling/ResamplingTrigger.cpp @@ -6,7 +6,7 @@ */ #include "ResamplingTrigger.H" -#include "Utils/WarpXUtil.H" +#include "Utils/Parser/ParserUtils.H" #include "WarpX.H" #include @@ -20,9 +20,10 @@ ResamplingTrigger::ResamplingTrigger (const std::string species_name) std::vector resampling_trigger_int_string_vec = {"0"}; pp_species_name.queryarr("resampling_trigger_intervals", resampling_trigger_int_string_vec); - m_resampling_intervals = IntervalsParser(resampling_trigger_int_string_vec); + m_resampling_intervals = utils::parser::IntervalsParser(resampling_trigger_int_string_vec); - queryWithParser(pp_species_name, "resampling_trigger_max_avg_ppc", m_max_avg_ppc); + utils::parser::queryWithParser( + pp_species_name, "resampling_trigger_max_avg_ppc", m_max_avg_ppc); } bool ResamplingTrigger::triggered (const int timestep, const amrex::Real global_numparts) const -- cgit v1.2.3