aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms
diff options
context:
space:
mode:
authorGravatar Olga Shapoval <30510597+oshapoval@users.noreply.github.com> 2021-11-22 16:42:37 -0800
committerGravatar GitHub <noreply@github.com> 2021-11-22 16:42:37 -0800
commite55fef18dea27108247024fffba4fccd84206ac2 (patch)
treefcb139e7e19bac8e5dd99775dc687cf80e7fdd6d /Source/FieldSolver/SpectralSolver/SpectralAlgorithms
parent04acd0d6324e8153c716fdd4870ef5a3c085eafc (diff)
downloadWarpX-e55fef18dea27108247024fffba4fccd84206ac2.tar.gz
WarpX-e55fef18dea27108247024fffba4fccd84206ac2.tar.zst
WarpX-e55fef18dea27108247024fffba4fccd84206ac2.zip
Added abort error message to prevent using averaged Galilean PSATD with psatd.update_with_rho=0 (#2571)
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
index 4fc2910db..395f164cc 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
@@ -112,6 +112,10 @@ PsatdAlgorithm::PsatdAlgorithm(
{
amrex::Abort("PSATD: warpx.do_divb_cleaning = 1 implemented only with psatd.J_linear_in_time = 1");
}
+ if (time_averaging && !update_with_rho)
+ {
+ amrex::Abort("PSATD: warpx.time_averaging = 1 implemented only with psatd.update_with_rho = 1");
+ }
}
void