aboutsummaryrefslogtreecommitdiff
path: root/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2022-05-31 02:35:30 +0200
committerGravatar GitHub <noreply@github.com> 2022-05-30 17:35:30 -0700
commitd5f61eafc3de4f15a02edcbb3a7b95abdc774ab7 (patch)
tree0c785e2cc1853b30c33f3c732569a352b50b8bef /Source/EmbeddedBoundary/WarpXFaceExtensions.cpp
parente267ac91316d5c590f3b73af20f4c5c567068e46 (diff)
downloadWarpX-d5f61eafc3de4f15a02edcbb3a7b95abdc774ab7.tar.gz
WarpX-d5f61eafc3de4f15a02edcbb3a7b95abdc774ab7.tar.zst
WarpX-d5f61eafc3de4f15a02edcbb3a7b95abdc774ab7.zip
Use Utils::TextMsg::Err and WARPX_ALWAYS_ASSERT_WITH_MESSAGE in more files (#3117)
* use formatted error messages * fixed bug * fixed bug * fixed bugs * fixed bug
Diffstat (limited to 'Source/EmbeddedBoundary/WarpXFaceExtensions.cpp')
-rw-r--r--Source/EmbeddedBoundary/WarpXFaceExtensions.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp b/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp
index 1da3134f0..772cc9b46 100644
--- a/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp
+++ b/Source/EmbeddedBoundary/WarpXFaceExtensions.cpp
@@ -156,7 +156,8 @@ WarpX::CountExtFaces() {
#elif defined(WARPX_DIM_3D)
for(int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
#else
- amrex::Abort("CountExtFaces: Only implemented in 2D3V and 3D3V");
+ amrex::Abort(Utils::TextMsg::Err(
+ "CountExtFaces: Only implemented in 2D3V and 3D3V"));
#endif
amrex::ReduceOps<amrex::ReduceOpSum> reduce_ops;
amrex::ReduceData<int> reduce_data(reduce_ops);
@@ -420,7 +421,8 @@ WarpX::ComputeOneWayExtensions() {
#elif defined(WARPX_DIM_3D)
for(int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
#else
- amrex::Abort("ComputeOneWayExtensions: Only implemented in 2D3V and 3D3V");
+ amrex::Abort(Utils::TextMsg::Err(
+ "ComputeOneWayExtensions: Only implemented in 2D3V and 3D3V"));
#endif
for (amrex::MFIter mfi(*Bfield_fp[maxLevel()][idim]); mfi.isValid(); ++mfi) {
@@ -541,7 +543,8 @@ WarpX::ComputeEightWaysExtensions() {
#elif defined(WARPX_DIM_3D)
for(int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
#else
- amrex::Abort("ComputeEightWaysExtensions: Only implemented in 2D3V and 3D3V");
+ amrex::Abort(Utils::TextMsg::Err(
+ "ComputeEightWaysExtensions: Only implemented in 2D3V and 3D3V"));
#endif
for (amrex::MFIter mfi(*Bfield_fp[maxLevel()][idim]); mfi.isValid(); ++mfi) {