aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Yinjian Zhao <yinjianzhao@lbl.gov> 2021-12-22 12:55:25 -0700
committerGravatar GitHub <noreply@github.com> 2021-12-22 19:55:25 +0000
commitf73b3cd49c430c59b6750d5e65dfd19dcf44c752 (patch)
tree2853a02755d260b690ba7373ab4ee0ff63a89de9 /Source/WarpX.cpp
parent011241af1c8feac1e1f8c726ac729a1216bd5d83 (diff)
downloadWarpX-f73b3cd49c430c59b6750d5e65dfd19dcf44c752.tar.gz
WarpX-f73b3cd49c430c59b6750d5e65dfd19dcf44c752.tar.zst
WarpX-f73b3cd49c430c59b6750d5e65dfd19dcf44c752.zip
Add embedded BC in RZ. (#2602)
* Start to add embedded BC in RZ. * Add . * Remove scaling * Fix compilation error * Update * Can compile. * Add call linop.setRZ(true). * Remove lines 264 to 312 and 343 to 345. * Add assert. * Remove an assert. * Add an automated test. * Change to MLEBNodeFDLaplacian. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix compilation error * Update the test selection * Correct compilation error * Move test to another worker * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add new required argument * Update Examples/Tests/ElectrostaticSphereEB/inputs_rz * Update Examples/Tests/ElectrostaticSphereEB/analysis_rz.py * Update analysis script Co-authored-by: Remi Lehe <remi.lehe@normalesup.org> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to '')
-rw-r--r--Source/WarpX.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 785debe79..585369d70 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -630,6 +630,11 @@ WarpX::ReadParameters ()
do_electrostatic = GetAlgorithmInteger(pp_warpx, "do_electrostatic");
+#if defined(AMREX_USE_EB) && defined(WARPX_DIM_RZ)
+ AMREX_ALWAYS_ASSERT_WITH_MESSAGE(do_electrostatic!=ElectrostaticSolverAlgo::None,
+ "Currently, the embedded boundary in RZ only works for electrostatic solvers.");
+#endif
+
if (do_electrostatic == ElectrostaticSolverAlgo::LabFrame) {
// Note that with the relativistic version, these parameters would be
// input for each species.