From cc1a280edc7f00af1745a918c86bd7158600d898 Mon Sep 17 00:00:00 2001 From: JamesEMcclure Date: Wed, 9 Jun 2021 16:41:36 -0400 Subject: [PATCH] kill more warnings --- tests/GenerateSphereTest.cpp | 14 ++++++-------- tests/lbpm_color_simulator.cpp | 1 + tests/lbpm_freelee_SingleFluidBGK_simulator.cpp | 1 + tests/lbpm_freelee_simulator.cpp | 1 + 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/GenerateSphereTest.cpp b/tests/GenerateSphereTest.cpp index e28042d7..fa2fb885 100644 --- a/tests/GenerateSphereTest.cpp +++ b/tests/GenerateSphereTest.cpp @@ -137,20 +137,18 @@ inline void MorphOpen(DoubleArray SignDist, char *id, Domain &Dm, int nx, int ny int Nx = nx; int Ny = ny; int Nz = nz; + int imin,jmin,kmin,imax,jmax,kmax; + double sw_old=1.0; double sw_new=1.0; - double sw_diff_old = 1.0; - double sw_diff_new = 1.0; + double sw_diff_old = 1.0; + double sw_diff_new = 1.0; // Increase the critical radius until the target saturation is met double deltaR=0.05; // amount to change the radius in voxel units - double Rcrit_old; - double Rcrit_new; - - int imin,jmin,kmin,imax,jmax,kmax; - - Rcrit_new = maxdistGlobal; + double Rcrit_new = maxdistGlobal; + double Rcrit_old = maxdistGlobal; while (sw_new > SW) { sw_diff_old = sw_diff_new; diff --git a/tests/lbpm_color_simulator.cpp b/tests/lbpm_color_simulator.cpp index 51ffe96e..276d34ea 100644 --- a/tests/lbpm_color_simulator.cpp +++ b/tests/lbpm_color_simulator.cpp @@ -112,6 +112,7 @@ int main( int argc, char **argv ) PROFILE_STOP( "Main" ); auto file = db->getWithDefault( "TimerFile", "lbpm_color_simulator" ); auto level = db->getWithDefault( "TimerLevel", 1 ); + NULL_USE(level); PROFILE_SAVE( file, level ); // **************************************************** diff --git a/tests/lbpm_freelee_SingleFluidBGK_simulator.cpp b/tests/lbpm_freelee_SingleFluidBGK_simulator.cpp index 19d99b9c..30ec4fec 100644 --- a/tests/lbpm_freelee_SingleFluidBGK_simulator.cpp +++ b/tests/lbpm_freelee_SingleFluidBGK_simulator.cpp @@ -59,6 +59,7 @@ int main( int argc, char **argv ) PROFILE_STOP("Main"); auto file = db->getWithDefault( "TimerFile", "lbpm_freelee_SingleFluidBGK_simulator" ); auto level = db->getWithDefault( "TimerLevel", 1 ); + NULL_USE(level); PROFILE_SAVE( file,level ); // **************************************************** diff --git a/tests/lbpm_freelee_simulator.cpp b/tests/lbpm_freelee_simulator.cpp index cdba5082..e2ca2d64 100644 --- a/tests/lbpm_freelee_simulator.cpp +++ b/tests/lbpm_freelee_simulator.cpp @@ -83,6 +83,7 @@ int main( int argc, char **argv ) PROFILE_STOP("Main"); auto file = db->getWithDefault( "TimerFile", "lbpm_freelee_simulator" ); auto level = db->getWithDefault( "TimerLevel", 1 ); + NULL_USE(level); PROFILE_SAVE( file,level ); // ****************************************************