aboutsummaryrefslogtreecommitdiff
path: root/Source/EmbeddedBoundary/WarpXInitEB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/EmbeddedBoundary/WarpXInitEB.cpp')
-rw-r--r--Source/EmbeddedBoundary/WarpXInitEB.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/Source/EmbeddedBoundary/WarpXInitEB.cpp b/Source/EmbeddedBoundary/WarpXInitEB.cpp
index a3a315ae0..a406886dd 100644
--- a/Source/EmbeddedBoundary/WarpXInitEB.cpp
+++ b/Source/EmbeddedBoundary/WarpXInitEB.cpp
@@ -129,8 +129,8 @@ WarpX::ComputeEdgeLengths (std::array< std::unique_ptr<amrex::MultiFab>, 3 >& ed
#elif defined(WARPX_DIM_3D)
for (int idim = 0; idim < AMREX_SPACEDIM; ++idim){
#else
- amrex::Abort(Utils::TextMsg::Err(
- "ComputeEdgeLengths: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "ComputeEdgeLengths: Only implemented in 2D3V and 3D3V");
#endif
amrex::Box box = mfi.tilebox(edge_lengths[idim]->ixType().toIntVect(),
edge_lengths[idim]->nGrowVect());
@@ -155,8 +155,8 @@ WarpX::ComputeEdgeLengths (std::array< std::unique_ptr<amrex::MultiFab>, 3 >& ed
#elif defined(WARPX_DIM_3D)
auto const &edge_cent = edge_centroid[idim]->const_array(mfi);
#else
- amrex::Abort(Utils::TextMsg::Err(
- "ComputeEdgeLengths: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "ComputeEdgeLengths: Only implemented in 2D3V and 3D3V");
#endif
amrex::ParallelFor(box, [=] AMREX_GPU_DEVICE (int i, int j, int k) {
if (edge_cent(i, j, k) == amrex::Real(-1.0)) {
@@ -192,8 +192,8 @@ WarpX::ComputeFaceAreas (std::array< std::unique_ptr<amrex::MultiFab>, 3 >& face
#elif defined(WARPX_DIM_3D)
auto const &area_frac = eb_fact.getAreaFrac();
#else
- amrex::Abort(Utils::TextMsg::Err(
- "ComputeFaceAreas: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "ComputeFaceAreas: Only implemented in 2D3V and 3D3V");
#endif
#ifdef WARPX_DIM_XZ
@@ -207,8 +207,8 @@ WarpX::ComputeFaceAreas (std::array< std::unique_ptr<amrex::MultiFab>, 3 >& face
#elif defined(WARPX_DIM_3D)
for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
#else
- amrex::Abort(Utils::TextMsg::Err(
- "ComputeFaceAreas: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "ComputeFaceAreas: Only implemented in 2D3V and 3D3V");
#endif
amrex::Box box = mfi.tilebox(face_areas[idim]->ixType().toIntVect(),
face_areas[idim]->nGrowVect());
@@ -230,8 +230,8 @@ WarpX::ComputeFaceAreas (std::array< std::unique_ptr<amrex::MultiFab>, 3 >& face
#elif defined(WARPX_DIM_3D)
auto const &face = area_frac[idim]->const_array(mfi);
#else
- amrex::Abort(Utils::TextMsg::Err(
- "ComputeFaceAreas: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "ComputeFaceAreas: Only implemented in 2D3V and 3D3V");
#endif
amrex::ParallelFor(box, [=] AMREX_GPU_DEVICE (int i, int j, int k) {
face_areas_dim(i, j, k) = face(i, j, k);
@@ -256,8 +256,8 @@ WarpX::ScaleEdges (std::array< std::unique_ptr<amrex::MultiFab>, 3 >& edge_lengt
#elif defined(WARPX_DIM_3D)
for (int idim = 0; idim < AMREX_SPACEDIM; ++idim){
#else
- amrex::Abort(Utils::TextMsg::Err(
- "ScaleEdges: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "ScaleEdges: Only implemented in 2D3V and 3D3V");
#endif
const amrex::Box& box = mfi.tilebox(edge_lengths[idim]->ixType().toIntVect(),
edge_lengths[idim]->nGrowVect() );
@@ -285,8 +285,8 @@ WarpX::ScaleAreas(std::array< std::unique_ptr<amrex::MultiFab>, 3 >& face_areas,
#elif defined(WARPX_DIM_3D)
for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
#else
- amrex::Abort(Utils::TextMsg::Err(
- "ScaleAreas: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "ScaleAreas: Only implemented in 2D3V and 3D3V");
#endif
const amrex::Box& box = mfi.tilebox(face_areas[idim]->ixType().toIntVect(),
face_areas[idim]->nGrowVect() );
@@ -301,8 +301,8 @@ WarpX::ScaleAreas(std::array< std::unique_ptr<amrex::MultiFab>, 3 >& face_areas,
full_area = cell_size[0]*cell_size[1];
}
#else
- amrex::Abort(Utils::TextMsg::Err(
- "ScaleAreas: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "ScaleAreas: Only implemented in 2D3V and 3D3V");
#endif
auto const &face_areas_dim = face_areas[idim]->array(mfi);
@@ -331,8 +331,8 @@ WarpX::MarkCells(){
// In 2D we change the extrema of the for loop so that we only have the case idim=1
for (int idim = 1; idim < AMREX_SPACEDIM; ++idim) {
#else
- amrex::Abort(Utils::TextMsg::Err(
- "MarkCells: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "MarkCells: Only implemented in 2D3V and 3D3V");
#endif
for (amrex::MFIter mfi(*Bfield_fp[maxLevel()][idim]); mfi.isValid(); ++mfi) {
//amrex::Box const &box = mfi.tilebox(m_face_areas[maxLevel()][idim]->ixType().toIntVect());
@@ -366,8 +366,8 @@ WarpX::MarkCells(){
S_stab = 0.5 * std::max({lx(i, j, k) * dz, lx(i, j, k + 1) * dz,
lz(i, j, k) * dx, lz(i + 1, j, k) * dx});
#else
- amrex::Abort(Utils::TextMsg::Err(
- "MarkCells: Only implemented in 2D3V and 3D3V"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "MarkCells: Only implemented in 2D3V and 3D3V");
#endif
}else {
S_stab = 0.5 * std::max({lx(i, j, k) * dy, lx(i, j + 1, k) * dy,