From 982e21f7d5460473ebf16153b1997de02a2e9e8b Mon Sep 17 00:00:00 2001
From: Anna Wellmann <a.wellmann@tu-bs.de>
Date: Thu, 30 Jun 2022 08:35:07 +0000
Subject: [PATCH] Remove unused variable in QDeviceComp27

---
 apps/gpu/LBM/DrivenCavity/DrivenCavity.cpp   | 8 ++++----
 src/gpu/VirtualFluids_GPU/GPU/NoSlipBCs27.cu | 3 ++-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/apps/gpu/LBM/DrivenCavity/DrivenCavity.cpp b/apps/gpu/LBM/DrivenCavity/DrivenCavity.cpp
index a4e322ad6..c5b7ad0c5 100644
--- a/apps/gpu/LBM/DrivenCavity/DrivenCavity.cpp
+++ b/apps/gpu/LBM/DrivenCavity/DrivenCavity.cpp
@@ -122,11 +122,11 @@ void multipleLevel(const std::string& configPath)
 
 	real dx = L / real(nx);
 
-	//gridBuilder->addCoarseGrid(-0.5 * L, -0.5 * L, -0.5 * L,
-	//							0.5 * L,  0.5 * L,  0.5 * L, dx);
+	gridBuilder->addCoarseGrid(-0.5 * L, -0.5 * L, -0.5 * L,
+								0.5 * L,  0.5 * L,  0.5 * L, dx);
 
-	gridBuilder->addCoarseGrid(-2.0 * dx, -0.5 * L, -0.5 * L,
-								2.0 * dx,  0.5 * L,  0.5 * L, dx);
+	// gridBuilder->addCoarseGrid(-2.0 * dx, -0.5 * L, -0.5 * L,
+	// 							2.0 * dx,  0.5 * L,  0.5 * L, dx);
 
     auto refBox = new Cuboid(-0.1 * L, -0.1 * L, -0.1 * L,
                               0.1 * L,  0.1 * L,  0.1 * L);
diff --git a/src/gpu/VirtualFluids_GPU/GPU/NoSlipBCs27.cu b/src/gpu/VirtualFluids_GPU/GPU/NoSlipBCs27.cu
index df2480959..6dcdcf028 100644
--- a/src/gpu/VirtualFluids_GPU/GPU/NoSlipBCs27.cu
+++ b/src/gpu/VirtualFluids_GPU/GPU/NoSlipBCs27.cu
@@ -1763,7 +1763,7 @@ extern "C" __global__ void QDeviceComp27(
 
        ////////////////////////////////////////////////////////////////////////////////
       //! - Update distributions with subgrid distance (q) between zero and one
-      real feq, q, velocityLB, velocityBC;
+      real feq, q, velocityLB;
       q = (subgridD.q[dirE])[k];
       if (q>=c0o1 && q<=c1o1) // only update distribution for q between zero and one
       {
@@ -1776,6 +1776,7 @@ extern "C" __global__ void QDeviceComp27(
       if (q>=c0o1 && q<=c1o1)
       {
          velocityLB = -vx1;
+         
          feq = getEquilibriumForBC(drho, velocityLB, cu_sq, c2o27);
          (dist.f[dirE])[ke] = getInterpolatedDistributionForNoSlipBC(q, f_W, f_E, feq, omega, c2o27);
       }
-- 
GitLab