aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2020-05-22 18:23:56 -0700
committerGravatar GitHub <noreply@github.com> 2020-05-22 18:23:56 -0700
commit78d23945b7cda7c1920d397af2c2c54d5dc590d4 (patch)
tree359ec85df6efed64328b6d211060cbdefabd7435 /Source/WarpX.cpp
parent41d40b0f3b48fd87d56726e860363d8e29c65881 (diff)
downloadWarpX-78d23945b7cda7c1920d397af2c2c54d5dc590d4.tar.gz
WarpX-78d23945b7cda7c1920d397af2c2c54d5dc590d4.tar.zst
WarpX-78d23945b7cda7c1920d397af2c2c54d5dc590d4.zip
Use C++ templates for the PML field pusher (#808)
* Allow to pass component in stencil templates * Define and use enum to address PML components * Start implementing PML equations * Implement EvolveEPML * Implemented EvolveBPML * Added interface for pml_has_particles * Added interface for pml_has_particles * [skip ci] Add update expressions for E * [skip ci] Fix compilation * Call new PML pusher for B field * Fix compilation errors * Fix more typos * Abort code if `do_pml` is used in cylindrical geometry * Add contribution from F in EvolveEPML * Remove unused function for CKC coefficients * Remove unneeded ExchangeF * Add damping for J * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Revert "Apply suggestions from code review" This reverts commit 08f262a676ba5e5b44b9118b8daba1b03c08b64b. * Remove sanity checks for nodal * Implement dive cleaning in PML * Implement push F in the PML * Clean-up unused code Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 28a72624b..82ccabb2d 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -282,17 +282,6 @@ WarpX::WarpX ()
// Sanity checks. Must be done after calling the MultiParticleContainer
// constructor, as it reads additional parameters
// (e.g., use_fdtd_nci_corr)
-
-#ifndef WARPX_USE_PSATD
- AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
- not ( do_pml && do_nodal ),
- "PML + do_nodal for finite-difference not implemented"
- );
-#endif
- AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
- not ( do_dive_cleaning && do_nodal ),
- "divE cleaning + do_nodal not implemented"
- );
#ifdef WARPX_USE_PSATD
AMREX_ALWAYS_ASSERT(use_fdtd_nci_corr == 0);
AMREX_ALWAYS_ASSERT(do_subcycling == 0);