diff options
author | 2022-03-08 18:38:25 +0100 | |
---|---|---|
committer | 2022-03-08 09:38:25 -0800 | |
commit | 0a64c2b8a42d766e5a893fcab2d4573b33cca74f (patch) | |
tree | 16f5979ff152251fc443f2e5ee67f929d6534228 /Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.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/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp')
-rw-r--r-- | Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp index 45ce20e12..124c256a2 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp @@ -6,6 +6,7 @@ */ #include "Laser/LaserProfiles.H" +#include "Utils/TextMsg.H" #include "Utils/WarpXUtil.H" #include "Utils/WarpX_Complex.H" #include "WarpX.H" @@ -275,9 +276,9 @@ WarpXLaserProfiles::FromTXYEFileLaserProfile::find_left_right_time_indices(amrex void WarpXLaserProfiles::FromTXYEFileLaserProfile::read_data_t_chuck(int t_begin, int t_end) { - amrex::Print() << - "Reading [" << t_begin << ", " << t_end << - ") data chunk from " << m_params.txye_file_name << "\n"; + amrex::Print() << Utils::TextMsg::Info( + "Reading [" + std::to_string(t_begin) + ", " + std::to_string(t_end) + + ") data chunk from " + m_params.txye_file_name); //Indices of the first and last timestep to read auto i_first = max(0, t_begin); |