aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2021-03-16 11:42:47 -0700
committerGravatar GitHub <noreply@github.com> 2021-03-16 11:42:47 -0700
commit0d74f67d074c06e34acbec6a20d36d5900f6c9ee (patch)
treecdbfa529f97e4cded9c7f604c261145662544e45 /Source/WarpX.cpp
parent1bdaceebb8c8c244f68e1187ab03f46b9e763ff0 (diff)
downloadWarpX-0d74f67d074c06e34acbec6a20d36d5900f6c9ee.tar.gz
WarpX-0d74f67d074c06e34acbec6a20d36d5900f6c9ee.tar.zst
WarpX-0d74f67d074c06e34acbec6a20d36d5900f6c9ee.zip
Implement Silver Mueller boundary conditions (#1766)
* Add function definitions for Silver-Mueller boundary condition * Add test file * Implement Silver-Mueller equations * Add equations for Bz * Add equation in the z direction * Add equation for Bx * Add 3D implementation * Add documentation, automated tests, and warnings * Include second automated test and evaluate benchmark * Fix unused variable warning * Fix minor bugs * Update benchmark * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Incorporate review comments * Incorporate more suggestions Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 2fc6fabc6..b4528b1bc 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -554,6 +554,10 @@ WarpX::ReadParameters ()
}
pp.query("do_pml", do_pml);
+ pp.query("do_silver_mueller", do_silver_mueller);
+ if ( (do_pml==1)&&(do_silver_mueller==1) ) {
+ amrex::Abort("PML and Silver-Mueller boundary conditions cannot be activated at the same time.");
+ }
pp.query("pml_ncell", pml_ncell);
pp.query("pml_delta", pml_delta);
pp.query("pml_has_particles", pml_has_particles);