aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Resampling/LevelingThinning.cpp
diff options
context:
space:
mode:
authorGravatar NeilZaim <49716072+NeilZaim@users.noreply.github.com> 2020-09-25 10:27:28 +0200
committerGravatar GitHub <noreply@github.com> 2020-09-25 10:27:28 +0200
commitfc898a05abd9fc2cba6f087e865415379174bab9 (patch)
treedb6dd209d3a10a894badfd657bca64b62e10d4d2 /Source/Particles/Resampling/LevelingThinning.cpp
parent6f0fbb9a685717070ffbf363d96a81343890526c (diff)
downloadWarpX-fc898a05abd9fc2cba6f087e865415379174bab9.tar.gz
WarpX-fc898a05abd9fc2cba6f087e865415379174bab9.tar.zst
WarpX-fc898a05abd9fc2cba6f087e865415379174bab9.zip
Add CI test and documentation for leveling thinning algorithm (#1327)
* First working version of tests * Add comments to test * Add test in WarpX-test.ini and initial checksum json file * Add resampling to input parameters doc * Uncomment lines about checksum in analysis script + Fix minor typos * Add momentum in plotfiles (for checksum) + Fix minor typoes * Remove particle_theta from checksum json file * Remove rho from checksum json file * Fix syntax error in checksum json file * Add benchmark values * Update Docs/source/running_cpp/parameters.rst Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Have one Resampling object per species Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Particles/Resampling/LevelingThinning.cpp')
-rw-r--r--Source/Particles/Resampling/LevelingThinning.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp
index 0fc347241..7ac28932e 100644
--- a/Source/Particles/Resampling/LevelingThinning.cpp
+++ b/Source/Particles/Resampling/LevelingThinning.cpp
@@ -9,12 +9,12 @@
#include <AMReX_Particles.H>
-LevelingThinning::LevelingThinning ()
+LevelingThinning::LevelingThinning (const std::string species_name)
{
using namespace amrex::literals;
- amrex::ParmParse pp("resampling_algorithm");
- pp.query("target_ratio", m_target_ratio);
+ amrex::ParmParse pp(species_name);
+ pp.query("resampling_algorithm_target_ratio", m_target_ratio);
AMREX_ALWAYS_ASSERT_WITH_MESSAGE( m_target_ratio > 0._rt,
"Resampling target ratio should be strictly greater than 0");
if (m_target_ratio <= 1._rt)