From 3ccc2ada05fa039a1788ed11741ea8729d05f539 Mon Sep 17 00:00:00 2001 From: Olga Shapoval <30510597+oshapoval@users.noreply.github.com> Date: Fri, 17 Jul 2020 15:59:43 -0700 Subject: 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) --- Source/Parallelization/GuardCellManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Parallelization/GuardCellManager.cpp') 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); -- cgit v1.2.3