aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Resampling/LevelingThinning.cpp
diff options
context:
space:
mode:
authorGravatar Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> 2021-10-12 02:39:58 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-11 17:39:58 -0700
commit5a12391f0c2350e9083bf3138da210eb81707e6e (patch)
tree5755fcbc17dfd120e2f3ad8fd019de7b15aca24f /Source/Particles/Resampling/LevelingThinning.cpp
parentd367eb0c15c36baf390d0c9ec7bc068fe25490b7 (diff)
downloadWarpX-5a12391f0c2350e9083bf3138da210eb81707e6e.tar.gz
WarpX-5a12391f0c2350e9083bf3138da210eb81707e6e.tar.zst
WarpX-5a12391f0c2350e9083bf3138da210eb81707e6e.zip
Use parser for more input parameters (#2386)
* Use parser for more input parameters * Fix PSATD compilation and apply suggestions from code review * Avoid out of bound array access for num_particles_per_cell_each_dim * Fix few input files with respect to num_particles_per_cell_each_dim * Fix get that incorrectly became query
Diffstat (limited to 'Source/Particles/Resampling/LevelingThinning.cpp')
-rw-r--r--Source/Particles/Resampling/LevelingThinning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp
index 8d2516a0f..33ad87630 100644
--- a/Source/Particles/Resampling/LevelingThinning.cpp
+++ b/Source/Particles/Resampling/LevelingThinning.cpp
@@ -40,7 +40,7 @@ LevelingThinning::LevelingThinning (const std::string species_name)
" It is possible that no particle will be removed during resampling");
}
- pp_species_name.query("resampling_algorithm_min_ppc", m_min_ppc);
+ queryWithParser(pp_species_name, "resampling_algorithm_min_ppc", m_min_ppc);
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(m_min_ppc >= 1,
"Resampling min_ppc should be greater than or equal to 1");
}