aboutsummaryrefslogtreecommitdiff
path: root/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-05-01 18:25:01 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-01 09:25:01 -0700
commit1c6f1bf24513b4e56f640eea402fa8223ea1c667 (patch)
tree29967ef551e4632b757f41ac98e10b258692be71 /Source/EmbeddedBoundary/WarpXFaceExtensions.cpp
parenta602c6e60ec8d6b728dfe7fe5e79ec191c906f57 (diff)
downloadWarpX-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/EmbeddedBoundary/WarpXFaceExtensions.cpp')
-rw-r--r--Source/EmbeddedBoundary/WarpXFaceExtensions.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp b/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp
index dbfebda66..70c19aed4 100644
--- a/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp
+++ b/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp
@@ -155,8 +155,8 @@ WarpX::CountExtFaces() {
#elif defined(WARPX_DIM_3D)
for(int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
#else
- amrex::Abort(Utils::TextMsg::Err(
- "CountExtFaces: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "CountExtFaces: Only implemented in 2D3V and 3D3V");
#endif
amrex::ReduceOps<amrex::ReduceOpSum> reduce_ops;
amrex::ReduceData<int> reduce_data(reduce_ops);
@@ -420,8 +420,8 @@ WarpX::ComputeOneWayExtensions() {
#elif defined(WARPX_DIM_3D)
for(int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
#else
- amrex::Abort(Utils::TextMsg::Err(
- "ComputeOneWayExtensions: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "ComputeOneWayExtensions: Only implemented in 2D3V and 3D3V");
#endif
for (amrex::MFIter mfi(*Bfield_fp[maxLevel()][idim]); mfi.isValid(); ++mfi) {
@@ -542,8 +542,8 @@ WarpX::ComputeEightWaysExtensions() {
#elif defined(WARPX_DIM_3D)
for(int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
#else
- amrex::Abort(Utils::TextMsg::Err(
- "ComputeEightWaysExtensions: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "ComputeEightWaysExtensions: Only implemented in 2D3V and 3D3V");
#endif
for (amrex::MFIter mfi(*Bfield_fp[maxLevel()][idim]); mfi.isValid(); ++mfi) {