diff options
author | 2020-07-17 15:59:43 -0700 | |
---|---|---|
committer | 2020-07-17 15:59:43 -0700 | |
commit | 3ccc2ada05fa039a1788ed11741ea8729d05f539 (patch) | |
tree | 36ae731d7d32b9d5c314bf35f819b0def7d3997d /Source/Parallelization/GuardCellManager.cpp | |
parent | fae4146844066e335729763d44b9ea00c4078d9c (diff) | |
download | WarpX-3ccc2ada05fa039a1788ed11741ea8729d05f539.tar.gz WarpX-3ccc2ada05fa039a1788ed11741ea8729d05f539.tar.zst WarpX-3ccc2ada05fa039a1788ed11741ea8729d05f539.zip |
Fixing compiler warnings (#1178)
* Removed unused variables and made 'vy=v_galilean[1]' declaration conditional on 3D case (this fixes compiler warnings)
* Avoid unnecessary conversion from 'double' to 'int' (this fixes compiler warnings)
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r-- | Source/Parallelization/GuardCellManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index c75b7426f..a74a04cbe 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -102,9 +102,9 @@ guardCellManager::Init( // is determined *empirically* to be the order of the solver // for nodal, and half the order of the solver for staggered. - int ngFFt_x = do_nodal ? nox_fft : nox_fft/2.; - int ngFFt_y = do_nodal ? noy_fft : noy_fft/2.; - int ngFFt_z = do_nodal ? noz_fft : noz_fft/2.; + int ngFFt_x = do_nodal ? nox_fft : nox_fft/2; + int ngFFt_y = do_nodal ? noy_fft : noy_fft/2; + int ngFFt_z = do_nodal ? noz_fft : noz_fft/2; ParmParse pp("psatd"); pp.query("nx_guard", ngFFt_x); |