aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.cpp
diff options
context:
space:
mode:
authorGravatar Prabhat Kumar <89051199+prkkumar@users.noreply.github.com> 2021-12-02 18:47:53 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-03 02:47:53 +0000
commiteeab8143e983df862b1f4646ea1baf6e6c85e33f (patch)
tree1d3acbab69368d29b6a5de667d7d009971d58fe1 /Source/Parallelization/GuardCellManager.cpp
parent725ba94f09199d608d29c1676cc9ac3055f17c64 (diff)
downloadWarpX-eeab8143e983df862b1f4646ea1baf6e6c85e33f.tar.gz
WarpX-eeab8143e983df862b1f4646ea1baf6e6c85e33f.tar.zst
WarpX-eeab8143e983df862b1f4646ea1baf6e6c85e33f.zip
Replace AMREX_SPACEDIM: Boundary & Parallelization (#2620)
* AMREX_SPACEDIM : Boundary Conditions * AMREX_SPACEDIM : Parallelization * Fix compilation * Update Source/Parallelization/WarpXComm_K.H
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r--Source/Parallelization/GuardCellManager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp
index b72e13cdc..92eaa9c85 100644
--- a/Source/Parallelization/GuardCellManager.cpp
+++ b/Source/Parallelization/GuardCellManager.cpp
@@ -109,13 +109,13 @@ guardCellManager::Init (
ngJz = std::max(ngJz,max_r);
}
-#if (AMREX_SPACEDIM == 3)
+#if defined(WARPX_DIM_3D)
ng_alloc_EB = IntVect(ngx,ngy,ngz);
ng_alloc_J = IntVect(ngJx,ngJy,ngJz);
-#elif (AMREX_SPACEDIM == 2)
+#elif defined(WARPX_DIM_XZ) || defined(WARPX_DIM_RZ)
ng_alloc_EB = IntVect(ngx,ngz);
ng_alloc_J = IntVect(ngJx,ngJz);
-#elif (AMREX_SPACEDIM == 1)
+#elif defined(WARPX_DIM_1D_Z)
ng_alloc_EB = IntVect(ngz);
ng_alloc_J = IntVect(ngJz);
#endif
@@ -194,11 +194,11 @@ guardCellManager::Init (
queryWithParser(pp_psatd, "ny_guard", ngFFt_y);
queryWithParser(pp_psatd, "nz_guard", ngFFt_z);
-#if (AMREX_SPACEDIM == 3)
+#if defined(WARPX_DIM_3D)
IntVect ngFFT = IntVect(ngFFt_x, ngFFt_y, ngFFt_z);
-#elif (AMREX_SPACEDIM == 2)
+#elif defined(WARPX_DIM_XZ) || defined(WARPX_DIM_RZ)
IntVect ngFFT = IntVect(ngFFt_x, ngFFt_z);
-#elif (AMREX_SPACEDIM == 1)
+#elif defined(WARPX_DIM_1D_Z)
IntVect ngFFT = IntVect(ngFFt_z);
#endif