diff options
author | 2021-09-24 02:56:18 +0200 | |
---|---|---|
committer | 2021-09-24 02:56:18 +0200 | |
commit | c07bd63a9c7fbe7fc0060ecc980547376256d19a (patch) | |
tree | 2e6e139b592934a5c38d1e47a89304da15d1f876 /Source/Parallelization/GuardCellManager.cpp | |
parent | 3a6650e45ef4cf9fed32e62228f4f45f4e74303a (diff) | |
download | WarpX-c07bd63a9c7fbe7fc0060ecc980547376256d19a.tar.gz WarpX-c07bd63a9c7fbe7fc0060ecc980547376256d19a.tar.zst WarpX-c07bd63a9c7fbe7fc0060ecc980547376256d19a.zip |
Exchange fewer guard cells with standard PSATD solver (#2266)
* Try to exchange fewer guard cells with standard PSATD solver
* Add ng_afterPushPSATD variable in GuardCellManager
Diffstat (limited to '')
-rw-r--r-- | Source/Parallelization/GuardCellManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index 79b613cf6..8dd44f706 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -232,6 +232,10 @@ guardCellManager::Init ( ng_alloc_F.max( ng_FieldSolverF ); ng_alloc_G.max( ng_FieldSolverG ); + if (do_moving_window && maxwell_solver_id == MaxwellSolverAlgo::PSATD) { + ng_afterPushPSATD = ng_alloc_EB; + } + if (safe_guard_cells){ // Run in safe mode: exchange all allocated guard cells at each // call of FillBoundary @@ -240,6 +244,7 @@ guardCellManager::Init ( ng_FieldSolverG = ng_alloc_G; ng_FieldGather = ng_alloc_EB; ng_UpdateAux = ng_alloc_EB; + ng_afterPushPSATD = ng_alloc_EB; if (do_moving_window){ ng_MovingWindow = ng_alloc_EB; } |