diff options
author | 2020-01-03 19:30:34 -0800 | |
---|---|---|
committer | 2020-01-03 19:30:34 -0800 | |
commit | 72c751d492c44c0bc4d318aeb195e05636c8c38a (patch) | |
tree | bfc14a4213a8c3e528a300f683535669cb91c5e1 /Source/Parallelization/GuardCellManager.cpp | |
parent | 0dd9333849b53089e1f7cad91b18ed2010a5c29a (diff) | |
download | WarpX-72c751d492c44c0bc4d318aeb195e05636c8c38a.tar.gz WarpX-72c751d492c44c0bc4d318aeb195e05636c8c38a.tar.zst WarpX-72c751d492c44c0bc4d318aeb195e05636c8c38a.zip |
include Remi's suggestions
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r-- | Source/Parallelization/GuardCellManager.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index 34454bd7e..99feca516 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -4,7 +4,7 @@ using namespace amrex; -int +void guardCellManager::Init( const bool do_subcycling, const bool do_fdtd_nci_corr, @@ -69,11 +69,9 @@ guardCellManager::Init( ng_alloc_J = IntVect(ngJx,ngJz); #endif - int nJ_buffer = ng_alloc_J.max(); // guard cells for J required for deposition only. - ng_alloc_Rho = ng_alloc_J+1; //One extra ghost cell, so that it's safe to deposit charge density // after pushing particle. - ng_alloc_F_int = (do_moving_window) ? 2 : 0; + int ng_alloc_F_int = (do_moving_window) ? 2 : 0; // CKC solver requires one additional guard cell if (maxwell_fdtd_solver_id == 1) ng_alloc_F_int = std::max( ng_alloc_F_int, 1 ); ng_alloc_F = IntVect(AMREX_D_DECL(ng_alloc_F_int, ng_alloc_F_int, ng_alloc_F_int)); @@ -155,6 +153,4 @@ guardCellManager::Init( if (do_moving_window){ ng_MovingWindow[moving_window_dir] = 1; } - - return nJ_buffer; } |