aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ReducedDiags/FieldProbe.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/Diagnostics/ReducedDiags/FieldProbe.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/Diagnostics/ReducedDiags/FieldProbe.cpp')
-rw-r--r--Source/Diagnostics/ReducedDiags/FieldProbe.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Diagnostics/ReducedDiags/FieldProbe.cpp b/Source/Diagnostics/ReducedDiags/FieldProbe.cpp
index b898d647f..9dfc76e64 100644
--- a/Source/Diagnostics/ReducedDiags/FieldProbe.cpp
+++ b/Source/Diagnostics/ReducedDiags/FieldProbe.cpp
@@ -115,8 +115,8 @@ FieldProbe::FieldProbe (std::string rd_name)
else if (m_probe_geometry_str == "Plane")
{
#if defined(WARPX_DIM_1D_Z)
- amrex::Abort(Utils::TextMsg::Err(
- "ERROR: Plane probe should be used in a 2D or 3D simulation only"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Plane probe should be used in a 2D or 3D simulation only");
#endif
m_probe_geometry = DetectorGeometry::Plane;
#if defined(WARPX_DIM_3D)
@@ -135,10 +135,10 @@ FieldProbe::FieldProbe (std::string rd_name)
}
else
{
- amrex::Abort(Utils::TextMsg::Err(
- "ERROR: Invalid probe geometry '" + m_probe_geometry_str
+ WARPX_ABORT_WITH_MESSAGE(
+ "Invalid probe geometry '" + m_probe_geometry_str
+ "'. Valid geometries are Point, Line or Plane."
- ));
+ );
}
pp_rd_name.query("integrate", m_field_probe_integrate);
pp_rd_name.query("raw_fields", raw_fields);