aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <maxence.thevenet@desy.de> 2021-07-21 07:47:30 +0200
committerGravatar GitHub <noreply@github.com> 2021-07-20 22:47:30 -0700
commita194e5dcdf3e1101423277e9e65db2e46100f2c1 (patch)
tree06d3d31dba844d4c47c1de9f414d6ff3ca11b394 /Source/WarpX.cpp
parent9042cf19f6a8c87c1f02c2f86267cc18f68858a8 (diff)
downloadWarpX-a194e5dcdf3e1101423277e9e65db2e46100f2c1.tar.gz
WarpX-a194e5dcdf3e1101423277e9e65db2e46100f2c1.tar.zst
WarpX-a194e5dcdf3e1101423277e9e65db2e46100f2c1.zip
assert that the NCI corrector is used with Esirkepov only (#2114)
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index fd5b65ca8..0fddd48e5 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -382,6 +382,12 @@ WarpX::WarpX ()
AMREX_ALWAYS_ASSERT(use_fdtd_nci_corr == 0);
AMREX_ALWAYS_ASSERT(do_subcycling == 0);
}
+
+ if (WarpX::current_deposition_algo != CurrentDepositionAlgo::Esirkepov) {
+ AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
+ use_fdtd_nci_corr == 0,
+ "The NCI corrector should only be used with Esirkepov deposition");
+ }
}
WarpX::~WarpX ()