aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2021-07-29 17:56:36 -0700
committerGravatar GitHub <noreply@github.com> 2021-07-29 17:56:36 -0700
commite4640d79dbef73d5d073e0be53b5dc5a526a899b (patch)
treeb92b59786fee4778f8e021b9363d21e0035e4289 /Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
parenta8d1be662e7fbc2096228acd0726051dbcdfff47 (diff)
downloadWarpX-e4640d79dbef73d5d073e0be53b5dc5a526a899b.tar.gz
WarpX-e4640d79dbef73d5d073e0be53b5dc5a526a899b.tar.zst
WarpX-e4640d79dbef73d5d073e0be53b5dc5a526a899b.zip
PSATD: div Cleaning Implemented only with psatd.J_linear_in_time=1 (#2142)
Diffstat (limited to '')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
index 43696f628..a605835e5 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
@@ -102,6 +102,16 @@ PsatdAlgorithm::PsatdAlgorithm(
X6_coef = SpectralComplexCoefficients(ba, dm, 1, 0);
InitializeSpectralCoefficientsAvgLin(spectral_kspace, dm, dt);
}
+
+ if (dive_cleaning && !J_linear_in_time)
+ {
+ amrex::Abort("PSATD: warpx.do_dive_cleaning = 1 implemented only with psatd.J_linear_in_time = 1");
+ }
+
+ if (divb_cleaning && !J_linear_in_time)
+ {
+ amrex::Abort("PSATD: warpx.do_divb_cleaning = 1 implemented only with psatd.J_linear_in_time = 1");
+ }
}
void