aboutsummaryrefslogtreecommitdiff
path: root/Source/Python
diff options
context:
space:
mode:
authorGravatar Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> 2021-07-13 00:27:49 -0700
committerGravatar GitHub <noreply@github.com> 2021-07-13 00:27:49 -0700
commitb739ed9ccdbfeb878ead2a9d2a9ad61fbcfce35e (patch)
tree8f3891e1606f37189458c877fdefc9e51a1383d5 /Source/Python
parent02e3b8cce573fb54253b10fc9104695d9c24b188 (diff)
downloadWarpX-b739ed9ccdbfeb878ead2a9d2a9ad61fbcfce35e.tar.gz
WarpX-b739ed9ccdbfeb878ead2a9d2a9ad61fbcfce35e.tar.zst
WarpX-b739ed9ccdbfeb878ead2a9d2a9ad61fbcfce35e.zip
Interface silver mueller (#2051)
* interface silvermueller with refactored boundary interface * add interface in silver mueller input files * define first and second half for EvolveB * add do_pml parse snce RZ needs do_pml to be st to false * Silver-Mueller boundary condition in docs * add firsthalf in ApplyBfieldBoundary within PushPSATD as only first first half is used to apply silvermueller * CallSilverMueller once for all boundaries * remove unused do silvermueller flag * fix typo in input file * Apply suggestions from code review Co-authored-by: Remi Lehe <remi.lehe@normalesup.org> * abort message if silver-mueller is not selected on all valid boundaries * fix typo * fix eol * remove ifdef from inside the Assert message * check silver-mueller selection after reading all boundaries Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Diffstat (limited to 'Source/Python')
-rw-r--r--Source/Python/WarpXWrappers.cpp4
-rw-r--r--Source/Python/WarpXWrappers.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp
index 47942a55b..3a7a91a55 100644
--- a/Source/Python/WarpXWrappers.cpp
+++ b/Source/Python/WarpXWrappers.cpp
@@ -434,9 +434,9 @@ extern "C"
WarpX& warpx = WarpX::GetInstance();
warpx.EvolveE (dt);
}
- void warpx_EvolveB (amrex::Real dt) {
+ void warpx_EvolveB (amrex::Real dt, DtType a_dt_type) {
WarpX& warpx = WarpX::GetInstance();
- warpx.EvolveB (dt);
+ warpx.EvolveB (dt, a_dt_type);
}
void warpx_FillBoundaryE () {
WarpX& warpx = WarpX::GetInstance();
diff --git a/Source/Python/WarpXWrappers.h b/Source/Python/WarpXWrappers.h
index 30fa81968..f98600707 100644
--- a/Source/Python/WarpXWrappers.h
+++ b/Source/Python/WarpXWrappers.h
@@ -8,6 +8,7 @@
#ifndef WARPX_WRAPPERS_H_
#define WARPX_WRAPPERS_H_
+#include "Evolve/WarpXDtType.H"
#include <AMReX_Config.H>
#include <AMReX_REAL.H>
@@ -95,7 +96,7 @@ extern "C" {
void warpx_MoveWindow (int step, bool move_j);
void warpx_EvolveE (amrex::Real dt);
- void warpx_EvolveB (amrex::Real dt);
+ void warpx_EvolveB (amrex::Real dt, DtType a_dt_type);
void warpx_FillBoundaryE ();
void warpx_FillBoundaryB ();
void warpx_SyncCurrent ();