diff options
author | 2023-05-01 18:25:01 +0200 | |
---|---|---|
committer | 2023-05-01 09:25:01 -0700 | |
commit | 1c6f1bf24513b4e56f640eea402fa8223ea1c667 (patch) | |
tree | 29967ef551e4632b757f41ac98e10b258692be71 /Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp | |
parent | a602c6e60ec8d6b728dfe7fe5e79ec191c906f57 (diff) | |
download | WarpX-1c6f1bf24513b4e56f640eea402fa8223ea1c667.tar.gz WarpX-1c6f1bf24513b4e56f640eea402fa8223ea1c667.tar.zst WarpX-1c6f1bf24513b4e56f640eea402fa8223ea1c667.zip |
Use WARPX_ABORT_WITH_MESSAGE("msg") instead of amrex::Abort(Utils::TextMsg::Err("msg")) (#3879)
* use WARPX_ABORT_WITH_MSG instead of amrex::Abort(Utils::TextMsg::Err(msg)) [WIP]
* use WARPX_ABORT_WITH_MESSAGE
* fix typo
* fix missing parenthesis
* remove spaces to prevent automatic text wrapping
* remove wrong parenthesis
Diffstat (limited to 'Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp')
-rw-r--r-- | Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp index 2ebd7fac8..0e0fe0ce0 100644 --- a/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp +++ b/Source/Laser/LaserProfilesImpl/LaserProfileFromTXYEFile.cpp @@ -356,8 +356,7 @@ WarpXLaserProfiles::FromTXYEFileLaserProfile::internal_fill_amplitude_uniform( m_params.t_coords.front(); #if (defined WARPX_DIM_1D_Z) - amrex::Abort(Utils::TextMsg::Err( - "WarpXLaserProfiles::FromTXYEFileLaserProfile Not implemented for 1D")); + WARPX_ABORT_WITH_MESSAGE("WarpXLaserProfiles::FromTXYEFileLaserProfile Not implemented for 1D"); #endif // Loop through the macroparticle to calculate the proper amplitude amrex::ParallelFor( @@ -469,8 +468,7 @@ WarpXLaserProfiles::FromTXYEFileLaserProfile::internal_fill_amplitude_nonuniform const auto t_right = m_params.t_coords[idx_t_right]; #if (defined WARPX_DIM_1D_Z) - amrex::Abort(Utils::TextMsg::Err( - "WarpXLaserProfiles::FromTXYEFileLaserProfile Not implemented for 1D")); + WARPX_ABORT_WITH_MESSAGE("WarpXLaserProfiles::FromTXYEFileLaserProfile Not implemented for 1D"); #endif // Loop through the macroparticle to calculate the proper amplitude |