From 088965e605901161dda5444e0b1e5deb0f4a0b6c Mon Sep 17 00:00:00 2001
From: Kutscher <kutscher@irmb.tu-bs.de>
Date: Tue, 13 Dec 2022 11:39:24 +0100
Subject: [PATCH] fix warnings

---
 apps/cpu/JetBreakup/JetBreakup.cpp         | 8 ++++----
 apps/cpu/RisingBubble2D/RisingBubble2D.cpp | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/apps/cpu/JetBreakup/JetBreakup.cpp b/apps/cpu/JetBreakup/JetBreakup.cpp
index aabc3f4d0..03c1d34c4 100644
--- a/apps/cpu/JetBreakup/JetBreakup.cpp
+++ b/apps/cpu/JetBreakup/JetBreakup.cpp
@@ -81,7 +81,7 @@ void run(string configname)
 
         // Sleep(30000);
 
-        double rho_h, rho_l, r_rho, mu_h, mu_l, Uo, D, sigma;
+        double rho_h=0, rho_l=0, r_rho=0, mu_h=0, /*mu_l,*/ Uo=0, D=0, sigma=0;
 
         switch (caseN) {
             case 1: 
@@ -94,7 +94,7 @@ void run(string configname)
                 //dynamic viscosity of heavy fluid (Pa � s)
                 mu_h = 2.87e-3;
                 //dynamic viscosity of light fluid (Pa � s)
-                mu_l = 1.97e-5;
+                //mu_l = 1.97e-5;
                 //velocity (m/s)
                 Uo = 100;
                 //diameter of jet (m)
@@ -112,7 +112,7 @@ void run(string configname)
                 // dynamic viscosity of heavy fluid (Pa � s)
                 mu_h = 2.87e-3;
                 // dynamic viscosity of light fluid (Pa � s)
-                mu_l = 1.84e-5;
+                //mu_l = 1.84e-5;
                 // velocity (m/s)
                 Uo = 200;
                 // diameter of jet (m)
@@ -130,7 +130,7 @@ void run(string configname)
                 // dynamic viscosity of heavy fluid (Pa � s)
                 mu_h = 2.87e-3;
                 // dynamic viscosity of light fluid (Pa � s)
-                mu_l = 1.84e-5;
+                //mu_l = 1.84e-5;
                 // velocity (m/s)
                 Uo = 200;
                 // diameter of jet (m)
diff --git a/apps/cpu/RisingBubble2D/RisingBubble2D.cpp b/apps/cpu/RisingBubble2D/RisingBubble2D.cpp
index f5e215fe7..448353340 100644
--- a/apps/cpu/RisingBubble2D/RisingBubble2D.cpp
+++ b/apps/cpu/RisingBubble2D/RisingBubble2D.cpp
@@ -46,7 +46,7 @@ void run(string configname)
         double cpStart     = config.getValue<double>("cpStart");
         double cpStep      = config.getValue<double>("cpStep");
         bool newStart      = config.getValue<bool>("newStart");
-        double rStep = config.getValue<double>("rStep");
+        //double rStep = config.getValue<double>("rStep");
 
         std::shared_ptr<vf::mpi::Communicator> comm = vf::mpi::MPICommunicator::getInstance();
         int myid                = comm->getProcessID();
@@ -100,13 +100,13 @@ void run(string configname)
         //density of heavy fluid
         LBMReal rho_h = 1.0;
         //density of light fluid
-        LBMReal rho_l = rho_h / r_rho;
+        //LBMReal rho_l = rho_h / r_rho;
 
         //kinimatic viscosity
         LBMReal nu_h = nuL;
         //LBMReal nu_l = nuG;
         //#dynamic viscosity
-        LBMReal mu_h = rho_h * nu_h;
+        //LBMReal mu_h = rho_h * nu_h;
         
         //gravity
         LBMReal g_y = Re * Re * nu_h * nu_h / (D*D*D);
-- 
GitLab