aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ReducedDiags/FieldReduction.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2022-03-08 18:38:25 +0100
committerGravatar GitHub <noreply@github.com> 2022-03-08 09:38:25 -0800
commit0a64c2b8a42d766e5a893fcab2d4573b33cca74f (patch)
tree16f5979ff152251fc443f2e5ee67f929d6534228 /Source/Diagnostics/ReducedDiags/FieldReduction.cpp
parent7425721ccced342615c054ea8147fbdc484d6620 (diff)
downloadWarpX-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/Diagnostics/ReducedDiags/FieldReduction.cpp')
-rw-r--r--Source/Diagnostics/ReducedDiags/FieldReduction.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Diagnostics/ReducedDiags/FieldReduction.cpp b/Source/Diagnostics/ReducedDiags/FieldReduction.cpp
index 0ebc89a7d..1f98dca8c 100644
--- a/Source/Diagnostics/ReducedDiags/FieldReduction.cpp
+++ b/Source/Diagnostics/ReducedDiags/FieldReduction.cpp
@@ -8,6 +8,7 @@
#include "FieldReduction.H"
#include "Utils/IntervalsParser.H"
+#include "Utils/TextMsg.H"
#include "Utils/WarpXAlgorithmSelection.H"
#include "Utils/WarpXUtil.H"
@@ -29,7 +30,7 @@ FieldReduction::FieldReduction (std::string rd_name)
// RZ coordinate is not working
#if (defined WARPX_DIM_RZ)
- AMREX_ALWAYS_ASSERT_WITH_MESSAGE(false,
+ WARPX_ALWAYS_ASSERT_WITH_MESSAGE(false,
"FieldReduction reduced diagnostics does not work for RZ coordinate.");
#endif
@@ -37,7 +38,7 @@ FieldReduction::FieldReduction (std::string rd_name)
int nLevel = 0;
amrex::ParmParse pp_amr("amr");
pp_amr.query("max_level", nLevel);
- AMREX_ALWAYS_ASSERT_WITH_MESSAGE(nLevel == 0,
+ WARPX_ALWAYS_ASSERT_WITH_MESSAGE(nLevel == 0,
"FieldReduction reduced diagnostics does not work with mesh refinement.");
constexpr int noutputs = 1; // A single output in the Field reduction diagnostic