aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver
diff options
context:
space:
mode:
Diffstat (limited to 'Source/FieldSolver/SpectralSolver')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.cpp4
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmFirstOrder.cpp8
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp4
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp8
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp8
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp8
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp16
-rw-r--r--Source/FieldSolver/SpectralSolver/WrapCuFFT.cpp10
-rw-r--r--Source/FieldSolver/SpectralSolver/WrapFFTW.cpp8
-rw-r--r--Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp8
10 files changed, 41 insertions, 41 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.cpp
index aecc754d4..13eb1bbf3 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.cpp
@@ -502,8 +502,8 @@ void PsatdAlgorithmComoving::CurrentCorrection (SpectralFieldData& field_data)
void
PsatdAlgorithmComoving::VayDeposition (SpectralFieldData& /*field_data*/)
{
- amrex::Abort(Utils::TextMsg::Err(
- "Vay deposition not implemented for comoving PSATD"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Vay deposition not implemented for comoving PSATD");
}
#endif // WARPX_USE_PSATD
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmFirstOrder.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmFirstOrder.cpp
index 3701fb889..290b005e1 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmFirstOrder.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmFirstOrder.cpp
@@ -357,8 +357,8 @@ void PsatdAlgorithmFirstOrder::CurrentCorrection (SpectralFieldData& field_data)
BL_PROFILE("PsatdAlgorithmFirstOrder::CurrentCorrection");
amrex::ignore_unused(field_data);
- amrex::Abort(Utils::TextMsg::Err(
- "Current correction not implemented for first-order PSATD equations"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Current correction not implemented for first-order PSATD equations");
}
void
@@ -368,8 +368,8 @@ PsatdAlgorithmFirstOrder::VayDeposition (SpectralFieldData& field_data)
BL_PROFILE("PsatdAlgorithmFirstOrder::VayDeposition()");
amrex::ignore_unused(field_data);
- amrex::Abort(Utils::TextMsg::Err(
- "Vay deposition not implemented for first-order PSATD equations"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Vay deposition not implemented for first-order PSATD equations");
}
#endif // WARPX_USE_PSATD
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp
index 75f0e49d1..8ab311308 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp
@@ -364,6 +364,6 @@ PsatdAlgorithmGalileanRZ::CurrentCorrection (SpectralFieldDataRZ& field_data)
void
PsatdAlgorithmGalileanRZ::VayDeposition (SpectralFieldDataRZ& /*field_data*/)
{
- amrex::Abort(Utils::TextMsg::Err(
- "Vay deposition not implemented in RZ geometry"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Vay deposition not implemented in RZ geometry");
}
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp
index ecdd6169c..27db744d7 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp
@@ -430,8 +430,8 @@ void PsatdAlgorithmJLinearInTime::CurrentCorrection (SpectralFieldData& field_da
BL_PROFILE("PsatdAlgorithmJLinearInTime::CurrentCorrection");
amrex::ignore_unused(field_data);
- amrex::Abort(Utils::TextMsg::Err(
- "Current correction not implemented for multi-J PSATD algorithm"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Current correction not implemented for multi-J PSATD algorithm");
}
void
@@ -441,8 +441,8 @@ PsatdAlgorithmJLinearInTime::VayDeposition (SpectralFieldData& field_data)
BL_PROFILE("PsatdAlgorithmJLinearInTime::VayDeposition()");
amrex::ignore_unused(field_data);
- amrex::Abort(Utils::TextMsg::Err(
- "Vay deposition not implemented for multi-J PSATD algorithm"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Vay deposition not implemented for multi-J PSATD algorithm");
}
#endif // WARPX_USE_PSATD
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp
index 217998d18..b8bdfdbed 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp
@@ -405,15 +405,15 @@ void PsatdAlgorithmPml::InitializeSpectralCoefficients (
void
PsatdAlgorithmPml::CurrentCorrection (SpectralFieldData& /*field_data*/)
{
- amrex::Abort(Utils::TextMsg::Err(
- "Current correction not implemented for PML PSATD"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Current correction not implemented for PML PSATD");
}
void
PsatdAlgorithmPml::VayDeposition (SpectralFieldData& /*field_data*/)
{
- amrex::Abort(Utils::TextMsg::Err(
- "Vay deposition not implemented for PML PSATD"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Vay deposition not implemented for PML PSATD");
}
#endif // WARPX_USE_PSATD
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp
index 60f7209de..d2200eb9f 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp
@@ -163,13 +163,13 @@ void PsatdAlgorithmPmlRZ::InitializeSpectralCoefficients (SpectralFieldDataRZ co
void
PsatdAlgorithmPmlRZ::CurrentCorrection (SpectralFieldDataRZ& /* field_data */)
{
- amrex::Abort(Utils::TextMsg::Err(
- "Current correction not implemented in RZ geometry PML"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Current correction not implemented in RZ geometry PML");
}
void
PsatdAlgorithmPmlRZ::VayDeposition (SpectralFieldDataRZ& /*field_data*/)
{
- amrex::Abort(Utils::TextMsg::Err(
- "Vay deposition not implemented in RZ geometry PML"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Vay deposition not implemented in RZ geometry PML");
}
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp
index 5b024b425..ee83ddce7 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp
@@ -58,20 +58,20 @@ PsatdAlgorithmRZ::PsatdAlgorithmRZ (SpectralKSpaceRZ const & spectral_kspace,
if (time_averaging && J_in_time != JInTime::Linear)
{
- amrex::Abort(Utils::TextMsg::Err(
- "RZ PSATD: psatd.do_time_averaging=1 implemented only with psatd.J_in_time=linear"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "RZ PSATD: psatd.do_time_averaging=1 implemented only with psatd.J_in_time=linear");
}
if (dive_cleaning && J_in_time != JInTime::Linear)
{
- amrex::Abort(Utils::TextMsg::Err(
- "RZ PSATD: warpx.do_dive_cleaning=1 implemented only with psatd.J_in_time=linear"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "RZ PSATD: warpx.do_dive_cleaning=1 implemented only with psatd.J_in_time=linear");
}
if (divb_cleaning && J_in_time != JInTime::Linear)
{
- amrex::Abort(Utils::TextMsg::Err(
- "RZ PSATD: warpx.do_divb_cleaning=1 implemented only with psatd.J_in_time=linear"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "RZ PSATD: warpx.do_divb_cleaning=1 implemented only with psatd.J_in_time=linear");
}
}
@@ -491,6 +491,6 @@ PsatdAlgorithmRZ::CurrentCorrection (SpectralFieldDataRZ& field_data)
void
PsatdAlgorithmRZ::VayDeposition (SpectralFieldDataRZ& /*field_data*/)
{
- amrex::Abort(Utils::TextMsg::Err(
- "Vay deposition not implemented in RZ geometry"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "Vay deposition not implemented in RZ geometry");
}
diff --git a/Source/FieldSolver/SpectralSolver/WrapCuFFT.cpp b/Source/FieldSolver/SpectralSolver/WrapCuFFT.cpp
index 030efcd4b..59b200a32 100644
--- a/Source/FieldSolver/SpectralSolver/WrapCuFFT.cpp
+++ b/Source/FieldSolver/SpectralSolver/WrapCuFFT.cpp
@@ -37,7 +37,7 @@ namespace AnyFFT
result = cufftPlan2d(
&(fft_plan.m_plan), real_size[1], real_size[0], VendorR2C);
} else {
- amrex::Abort(Utils::TextMsg::Err("only dim=2 and dim=3 have been implemented"));
+ WARPX_ABORT_WITH_MESSAGE("only dim=2 and dim=3 have been implemented");
}
} else {
if (dim == 3) {
@@ -47,7 +47,7 @@ namespace AnyFFT
result = cufftPlan2d(
&(fft_plan.m_plan), real_size[1], real_size[0], VendorC2R);
} else {
- amrex::Abort(Utils::TextMsg::Err("only dim=2 and dim=3 have been implemented"));
+ WARPX_ABORT_WITH_MESSAGE("only dim=2 and dim=3 have been implemented");
}
}
@@ -89,11 +89,11 @@ namespace AnyFFT
result = cufftExecZ2D(fft_plan.m_plan, fft_plan.m_complex_array, fft_plan.m_real_array);
#endif
} else {
- amrex::Abort(Utils::TextMsg::Err(
- "direction must be AnyFFT::direction::R2C or AnyFFT::direction::C2R"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "direction must be AnyFFT::direction::R2C or AnyFFT::direction::C2R");
}
if ( result != CUFFT_SUCCESS ) {
- amrex::Print() << Utils::TextMsg::Err(
+ WARPX_ABORT_WITH_MESSAGE(
"forward transform using cufftExec failed ! Error: "
+cufftErrorToString(result));
}
diff --git a/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp b/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp
index 8159e53c3..df330c4f6 100644
--- a/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp
+++ b/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp
@@ -54,8 +54,8 @@ namespace AnyFFT
fft_plan.m_plan = VendorCreatePlanR2C2D(
real_size[1], real_size[0], real_array, complex_array, FFTW_ESTIMATE);
} else {
- amrex::Abort(Utils::TextMsg::Err(
- "only dim=2 and dim=3 have been implemented"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "only dim=2 and dim=3 have been implemented");
}
} else if (dir == direction::C2R){
if (dim == 3) {
@@ -65,8 +65,8 @@ namespace AnyFFT
fft_plan.m_plan = VendorCreatePlanC2R2D(
real_size[1], real_size[0], complex_array, real_array, FFTW_ESTIMATE);
} else {
- amrex::Abort(Utils::TextMsg::Err(
- "only dim=2 and dim=3 have been implemented. Should be easy to add dim=1."));
+ WARPX_ABORT_WITH_MESSAGE(
+ "only dim=2 and dim=3 have been implemented. Should be easy to add dim=1.");
}
}
diff --git a/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp b/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp
index 66c9c6c50..0d8246c09 100644
--- a/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp
+++ b/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp
@@ -18,8 +18,8 @@ namespace AnyFFT
void assert_rocfft_status (std::string const& name, rocfft_status status)
{
if (status != rocfft_status_success) {
- amrex::Abort(Utils::TextMsg::Err(
- name + " failed! Error: " + rocfftErrorToString(status)));
+ WARPX_ABORT_WITH_MESSAGE(
+ name + " failed! Error: " + rocfftErrorToString(status));
}
}
}
@@ -91,8 +91,8 @@ namespace AnyFFT
(void**)&(fft_plan.m_real_array), // out
execinfo);
} else {
- amrex::Abort(Utils::TextMsg::Err(
- "direction must be AnyFFT::direction::R2C or AnyFFT::direction::C2R"));
+ WARPX_ABORT_WITH_MESSAGE(
+ "direction must be AnyFFT::direction::R2C or AnyFFT::direction::C2R");
}
assert_rocfft_status("rocfft_execute", result);