aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-06-13 00:39:20 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-12 15:39:20 -0700
commit2289f4a24e6d0d6a5957f76dd6eed19f129860e6 (patch)
tree7f19698e8033c91fa4c441203a4f8e28513acb2d /Source/Parallelization
parentceef66ccd87d9eacdbc18f0ae777f6848e060c7f (diff)
downloadWarpX-2289f4a24e6d0d6a5957f76dd6eed19f129860e6.tar.gz
WarpX-2289f4a24e6d0d6a5957f76dd6eed19f129860e6.tar.zst
WarpX-2289f4a24e6d0d6a5957f76dd6eed19f129860e6.zip
Replace amrex::Abort with WARPX_ABORT_WITH_MESSAGE (#3965)
* replace amrex::Abort with WarpX macros * use amrex::Abort in a GPU kernel * use amrex::Abort in a GPU kernel * use amrex::Abort in a GPU kernel * use amrex::Abort in a GPU kernel * use amrex::Abort in a GPU kernel * use amrex::Abort in a GPU kernel * adding back missing include * use amrex::Abort in a GPU kernel * use amrex::Abort in a GPU kernel * use amrex::Abort in a GPU kernel * bump precision
Diffstat (limited to 'Source/Parallelization')
-rw-r--r--Source/Parallelization/WarpXComm.cpp8
-rw-r--r--Source/Parallelization/WarpXRegrid.cpp3
2 files changed, 6 insertions, 5 deletions
diff --git a/Source/Parallelization/WarpXComm.cpp b/Source/Parallelization/WarpXComm.cpp
index b5989ea71..538aa888b 100644
--- a/Source/Parallelization/WarpXComm.cpp
+++ b/Source/Parallelization/WarpXComm.cpp
@@ -655,7 +655,7 @@ WarpX::FillBoundaryE_avg (int lev, PatchType patch_type, IntVect ng)
{
if (do_pml && pml[lev]->ok())
{
- amrex::Abort("Averaged Galilean PSATD with PML is not yet implemented");
+ WARPX_ABORT_WITH_MESSAGE("Averaged Galilean PSATD with PML is not yet implemented");
}
const amrex::Periodicity& period = Geom(lev).periodicity();
@@ -675,7 +675,7 @@ WarpX::FillBoundaryE_avg (int lev, PatchType patch_type, IntVect ng)
{
if (do_pml && pml[lev]->ok())
{
- amrex::Abort("Averaged Galilean PSATD with PML is not yet implemented");
+ WARPX_ABORT_WITH_MESSAGE("Averaged Galilean PSATD with PML is not yet implemented");
}
const amrex::Periodicity& cperiod = Geom(lev-1).periodicity();
@@ -709,7 +709,7 @@ WarpX::FillBoundaryB_avg (int lev, PatchType patch_type, IntVect ng)
{
if (do_pml && pml[lev]->ok())
{
- amrex::Abort("Averaged Galilean PSATD with PML is not yet implemented");
+ WARPX_ABORT_WITH_MESSAGE("Averaged Galilean PSATD with PML is not yet implemented");
}
const amrex::Periodicity& period = Geom(lev).periodicity();
if ( safe_guard_cells ) {
@@ -728,7 +728,7 @@ WarpX::FillBoundaryB_avg (int lev, PatchType patch_type, IntVect ng)
{
if (do_pml && pml[lev]->ok())
{
- amrex::Abort("Averaged Galilean PSATD with PML is not yet implemented");
+ WARPX_ABORT_WITH_MESSAGE("Averaged Galilean PSATD with PML is not yet implemented");
}
const amrex::Periodicity& cperiod = Geom(lev-1).periodicity();
diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp
index 16ecd49ce..25eff3045 100644
--- a/Source/Parallelization/WarpXRegrid.cpp
+++ b/Source/Parallelization/WarpXRegrid.cpp
@@ -14,6 +14,7 @@
#include "Particles/MultiParticleContainer.H"
#include "Particles/ParticleBoundaryBuffer.H"
#include "Particles/WarpXParticleContainer.H"
+#include "Utils/TextMsg.H"
#include "Utils/WarpXAlgorithmSelection.H"
#include "Utils/WarpXProfilerWrapper.H"
@@ -355,7 +356,7 @@ WarpX::RemakeLevel (int lev, Real /*time*/, const BoxArray& ba, const Distributi
} else
{
- amrex::Abort("RemakeLevel: to be implemented");
+ WARPX_ABORT_WITH_MESSAGE("RemakeLevel: to be implemented");
}
// Re-initialize diagnostic functors that stores pointers to the user-requested fields at level, lev.