From 2f7743b0c1f6043c2a8b7295c825ae45a0f6889b Mon Sep 17 00:00:00 2001 From: Grzegorz Kowal Date: Thu, 6 Aug 2020 18:59:03 -0300 Subject: [PATCH] REFINEMENT: Remove unused variables. Signed-off-by: Grzegorz Kowal --- CMakeLists.txt | 2 +- sources/refinement.F90 | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8130a8b..5163403 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,7 +19,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) endif() if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU") - add_compile_options("$<$:-march=native;-pipe;-pedantic;-ftree-vectorize;-fno-unsafe-math-optimizations;-frounding-math;-fsignaling-nans;-finline-limit=10000;-fdiagnostics-color=always>") + add_compile_options("$<$:-march=native;-pipe;-pedantic;-ftree-vectorize;-fno-unsafe-math-optimizations;-frounding-math;-fsignaling-nans;-finline-limit=10000;-fdiagnostics-color=always;-Wunused-variable>") add_compile_options("$<$:-Og;-pedantic;-W;-Wall>") endif() diff --git a/sources/refinement.F90 b/sources/refinement.F90 index cc2e28e..d2c4e31 100644 --- a/sources/refinement.F90 +++ b/sources/refinement.F90 @@ -605,9 +605,8 @@ module refinement use blocks , only : block_data use coordinates, only : nn => bcells use coordinates, only : nbl, neu - use coordinates, only : adx, ady, adz - use equations , only : inx, iny, inz - use equations , only : ivx, ivy, ivz + use equations , only : inx, inz + use equations , only : ivx, ivz use operators , only : curl ! local variables are not implicit by default @@ -697,9 +696,8 @@ module refinement use blocks , only : block_data use coordinates, only : nn => bcells use coordinates, only : nbl, neu - use coordinates, only : adx, ady, adz - use equations , only : inx, iny, inz - use equations , only : ibx, iby, ibz + use equations , only : inx, inz + use equations , only : ibx, ibz use operators , only : curl ! local variables are not implicit by default