diff options
author | 2022-03-08 18:38:25 +0100 | |
---|---|---|
committer | 2022-03-08 09:38:25 -0800 | |
commit | 0a64c2b8a42d766e5a893fcab2d4573b33cca74f (patch) | |
tree | 16f5979ff152251fc443f2e5ee67f929d6534228 /Source/Particles/Resampling/LevelingThinning.cpp | |
parent | 7425721ccced342615c054ea8147fbdc484d6620 (diff) | |
download | WarpX-0a64c2b8a42d766e5a893fcab2d4573b33cca74f.tar.gz WarpX-0a64c2b8a42d766e5a893fcab2d4573b33cca74f.tar.zst WarpX-0a64c2b8a42d766e5a893fcab2d4573b33cca74f.zip |
Make error and info messages visually uniform (#2939)
* initial work to add msg formatter
* wip
* replace AMREX_ALWAYS_ASSERT_WITH_MESSAGE with WarpX equivalent
Diffstat (limited to 'Source/Particles/Resampling/LevelingThinning.cpp')
-rw-r--r-- | Source/Particles/Resampling/LevelingThinning.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp index 716b0d2ab..842c28884 100644 --- a/Source/Particles/Resampling/LevelingThinning.cpp +++ b/Source/Particles/Resampling/LevelingThinning.cpp @@ -8,6 +8,7 @@ #include "Particles/WarpXParticleContainer.H" #include "Utils/ParticleUtils.H" +#include "Utils/TextMsg.H" #include "Utils/WarpXUtil.H" #include "WarpX.H" @@ -33,7 +34,7 @@ LevelingThinning::LevelingThinning (const std::string species_name) amrex::ParmParse pp_species_name(species_name); queryWithParser(pp_species_name, "resampling_algorithm_target_ratio", m_target_ratio); - AMREX_ALWAYS_ASSERT_WITH_MESSAGE( m_target_ratio > 0._rt, + 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) { @@ -44,7 +45,7 @@ LevelingThinning::LevelingThinning (const std::string species_name) } queryWithParser(pp_species_name, "resampling_algorithm_min_ppc", m_min_ppc); - AMREX_ALWAYS_ASSERT_WITH_MESSAGE(m_min_ppc >= 1, + WARPX_ALWAYS_ASSERT_WITH_MESSAGE(m_min_ppc >= 1, "Resampling min_ppc should be greater than or equal to 1"); } |