aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ()