diff options
author | 2021-12-06 14:07:53 -0800 | |
---|---|---|
committer | 2021-12-06 14:07:53 -0800 | |
commit | b2b56057b7b4477f21234ee08c15337ddf45084d (patch) | |
tree | f541d3e27824286f302145b93b5243547e33f196 /Source/Parallelization/GuardCellManager.cpp | |
parent | 713f5aed32d052e60307c79d7f5dace7b96bb6f5 (diff) | |
download | WarpX-b2b56057b7b4477f21234ee08c15337ddf45084d.tar.gz WarpX-b2b56057b7b4477f21234ee08c15337ddf45084d.tar.zst WarpX-b2b56057b7b4477f21234ee08c15337ddf45084d.zip |
Define WARPX_ZINDEX to denote the index for the Z dimension regardless of the build's dimensionality (#2622)
* Define WARPX_ZINDEX to denote the index for the Z dimension regardless of the build's dimensionality
* Add WARPX_ZINDEX macro definition to Makefile as well
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r-- | Source/Parallelization/GuardCellManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index 92eaa9c85..2fa0c4c4a 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -284,7 +284,7 @@ guardCellManager::Init ( // If NCI filter, add guard cells in the z direction IntVect ng_NCIFilter = IntVect::TheZeroVector(); if (do_fdtd_nci_corr) - ng_NCIFilter[AMREX_SPACEDIM-1] = NCIGodfreyFilter::m_stencil_width; + ng_NCIFilter[WARPX_ZINDEX] = NCIGodfreyFilter::m_stencil_width; // Note: communications of guard cells for bilinear filter are handled // separately. ng_FieldGather = ng_FieldGather_noNCI + ng_NCIFilter; |