aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.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/ComputeDiagFunctors/CellCenterFunctor.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/ComputeDiagFunctors/CellCenterFunctor.cpp')
-rw-r--r--Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
index 5ca0c3edc..2dac5fb00 100644
--- a/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
+++ b/Source/Diagnostics/ComputeDiagFunctors/CellCenterFunctor.cpp
@@ -1,6 +1,7 @@
#include "CellCenterFunctor.H"
#include "Utils/CoarsenIO.H"
+#include "Utils/TextMsg.H"
#ifdef WARPX_DIM_RZ
# include "WarpX.H"
#endif
@@ -23,7 +24,7 @@ CellCenterFunctor::operator()(amrex::MultiFab& mf_dst, int dcomp, const int /*i_
if (m_convertRZmodes2cartesian) {
// In cylindrical geometry, sum real part of all modes of m_mf_src in
// temporary multifab mf_dst_stag, and cell-center it to mf_dst.
- AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
+ WARPX_ALWAYS_ASSERT_WITH_MESSAGE(
nComp()==1,
"The RZ averaging over modes must write into 1 single component");
auto& warpx = WarpX::GetInstance();