aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2020-08-24 23:14:30 +0200
committerGravatar GitHub <noreply@github.com> 2020-08-24 14:14:30 -0700
commitbb58c764f9f21f8baac5e2fb1d81fed4983d1242 (patch)
tree3e1f5914d8f1e2be1168b79509718719745ebb93 /Source/Parallelization/GuardCellManager.cpp
parent78f9be325d894bbae867aa279efdfd2212690825 (diff)
downloadWarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.tar.gz
WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.tar.zst
WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.zip
Fix some warnings (#1239)
This PR fixes the source of several compilation warnings. Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r--Source/Parallelization/GuardCellManager.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp
index a4a3e78e2..05ea700d8 100644
--- a/Source/Parallelization/GuardCellManager.cpp
+++ b/Source/Parallelization/GuardCellManager.cpp
@@ -8,6 +8,7 @@
#include "Filter/NCIGodfreyFilter.H"
#include <AMReX_Print.H>
#include <AMReX_ParmParse.H>
+#include <AMReX.H>
using namespace amrex;
@@ -111,10 +112,10 @@ guardCellManager::Init(
pp.query("ny_guard", ngFFt_y);
pp.query("nz_guard", ngFFt_z);
-#if (AMREX_SPACEDIM == 3)
- IntVect ngFFT = IntVect(ngFFt_x, ngFFt_y, ngFFt_z);
+#if (AMREX_SPACEDIM == 3)
+ IntVect ngFFT = IntVect(ngFFt_x, ngFFt_y, ngFFt_z);
#elif (AMREX_SPACEDIM == 2)
- IntVect ngFFT = IntVect(ngFFt_x, ngFFt_z);
+ IntVect ngFFT = IntVect(ngFFt_x, ngFFt_z);
#endif
for (int i_dim=0; i_dim<AMREX_SPACEDIM; i_dim++ ){
@@ -132,6 +133,8 @@ guardCellManager::Init(
ng_alloc_F_int = ng_required;
}
ng_alloc_F = IntVect(AMREX_D_DECL(ng_alloc_F_int, ng_alloc_F_int, ng_alloc_F_int));
+#else
+ ignore_unused(nox_fft, noy_fft, noz_fft);
#endif
ng_Extra = IntVect(static_cast<int>(aux_is_nodal and !do_nodal));