aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/WrapFFTW.cpp')
-rw-r--r--Source/FieldSolver/SpectralSolver/WrapFFTW.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp b/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp
index 57a0fad04..8159e53c3 100644
--- a/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp
+++ b/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp
@@ -7,6 +7,8 @@
#include "AnyFFT.H"
+#include "Utils/TextMsg.H"
+
#include <AMReX.H>
#include <AMReX_IntVect.H>
#include <AMReX_REAL.H>
@@ -52,7 +54,8 @@ namespace AnyFFT
fft_plan.m_plan = VendorCreatePlanR2C2D(
real_size[1], real_size[0], real_array, complex_array, FFTW_ESTIMATE);
} else {
- amrex::Abort("only dim=2 and dim=3 have been implemented");
+ amrex::Abort(Utils::TextMsg::Err(
+ "only dim=2 and dim=3 have been implemented"));
}
} else if (dir == direction::C2R){
if (dim == 3) {
@@ -62,7 +65,8 @@ namespace AnyFFT
fft_plan.m_plan = VendorCreatePlanC2R2D(
real_size[1], real_size[0], complex_array, real_array, FFTW_ESTIMATE);
} else {
- amrex::Abort("only dim=2 and dim=3 have been implemented. Should be easy to add dim=1.");
+ amrex::Abort(Utils::TextMsg::Err(
+ "only dim=2 and dim=3 have been implemented. Should be easy to add dim=1."));
}
}