diff options
author | 2019-10-27 14:28:21 -0700 | |
---|---|---|
committer | 2019-10-27 14:28:21 -0700 | |
commit | 30abf69638c200cd4fdfb9305a9b02075c0df0b0 (patch) | |
tree | 1cfe74ce6f19961bd90999d022ad14f4b7c3d8b7 /Source/Parallelization/GuardCellManager.cpp | |
parent | 74260bda9f4a8bc74fdafebcf649245c44c4d166 (diff) | |
download | WarpX-30abf69638c200cd4fdfb9305a9b02075c0df0b0.tar.gz WarpX-30abf69638c200cd4fdfb9305a9b02075c0df0b0.tar.zst WarpX-30abf69638c200cd4fdfb9305a9b02075c0df0b0.zip |
avoid redeclaring variables
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r-- | Source/Parallelization/GuardCellManager.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index 400bde28f..88dab9fd1 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -59,6 +59,7 @@ guardCellManager::Init( ngJz = std::max(ngJz,2); } +/* #if (AMREX_SPACEDIM == 3) IntVect ngE(ngx,ngy,ngz); IntVect ngJ(ngJx,ngJy,ngJz); @@ -70,6 +71,19 @@ guardCellManager::Init( IntVect ngRho = ngJ+1; //One extra ghost cell, so that it's safe to deposit charge density // after pushing particle. int ngF = (do_moving_window) ? 2 : 0; +*/ + +#if (AMREX_SPACEDIM == 3) + ngE = IntVect(ngx,ngy,ngz); + ngJ = IntVect(ngJx,ngJy,ngJz); +#elif (AMREX_SPACEDIM == 2) + ngE = IntVect(ngx,ngz); + ngJ = IntVect(ngJx,ngJz); +#endif + + ngRho = ngJ+1; //One extra ghost cell, so that it's safe to deposit charge density + // after pushing particle. + ngF = (do_moving_window) ? 2 : 0; // CKC solver requires one additional guard cell if (maxwell_fdtd_solver_id == 1) ngF = std::max( ngF, 1 ); |