aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/WarpXIO.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/WarpXIO.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/WarpXIO.cpp')
-rw-r--r--Source/Diagnostics/WarpXIO.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Diagnostics/WarpXIO.cpp b/Source/Diagnostics/WarpXIO.cpp
index e819daf7c..9170e0bd7 100644
--- a/Source/Diagnostics/WarpXIO.cpp
+++ b/Source/Diagnostics/WarpXIO.cpp
@@ -13,8 +13,9 @@
#endif
#include "FieldIO.H"
#include "Particles/MultiParticleContainer.H"
-#include "Utils/CoarsenIO.H"
#include "Parallelization/WarpXCommUtil.H"
+#include "Utils/CoarsenIO.H"
+#include "Utils/TextMsg.H"
#include "Utils/WarpXProfilerWrapper.H"
#include "WarpX.H"
@@ -93,7 +94,8 @@ WarpX::InitFromCheckpoint ()
{
WARPX_PROFILE("WarpX::InitFromCheckpoint()");
- amrex::Print() << " Restart from checkpoint " << restart_chkfile << "\n";
+ amrex::Print()<< Utils::TextMsg::Info(
+ "restart from checkpoint " + restart_chkfile);
// Header
{