diff options
author | 2022-03-08 18:38:25 +0100 | |
---|---|---|
committer | 2022-03-08 09:38:25 -0800 | |
commit | 0a64c2b8a42d766e5a893fcab2d4573b33cca74f (patch) | |
tree | 16f5979ff152251fc443f2e5ee67f929d6534228 /Source/Diagnostics/BTD_Plotfile_Header_Impl.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/Diagnostics/BTD_Plotfile_Header_Impl.cpp')
-rw-r--r-- | Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp b/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp index bf9f8e877..0bafe4b71 100644 --- a/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp +++ b/Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp @@ -6,6 +6,7 @@ */ #include "BTD_Plotfile_Header_Impl.H" +#include "Utils/TextMsg.H" #include "WarpX.H" #include <AMReX.H> @@ -108,7 +109,7 @@ void BTDPlotfileHeaderImpl::WriteHeader () { if ( amrex::FileExists(m_Header_path) ) { - amrex::Print() << " removing this file : " << m_Header_path << "\n"; + amrex::Print() << Utils::TextMsg::Info(" removing this file : " + m_Header_path); amrex::FileSystem::Remove(m_Header_path); } std::ofstream HeaderFile; @@ -257,7 +258,7 @@ void BTDMultiFabHeaderImpl::WriteMultiFabHeader () { if ( amrex::FileExists(m_Header_path) ) { - amrex::Print() << " removing this file : " << m_Header_path << "\n"; + amrex::Print() << Utils::TextMsg::Info(" removing this file : " + m_Header_path); amrex::FileSystem::Remove(m_Header_path); } std::ofstream FabHeaderFile; |