From 498d096285be9027efff3116c25abcfdf1d4fedb Mon Sep 17 00:00:00 2001
From: HenrikAsmuth <henrik.asmuth@geo.uu.se>
Date: Thu, 24 Nov 2022 08:47:52 +0100
Subject: [PATCH] Clean-up leftovers from debugging

---
 src/gpu/VirtualFluids_GPU/Calculation/UpdateGrid27.cpp | 5 -----
 src/gpu/VirtualFluids_GPU/GPU/GPU_Kernels.cuh          | 1 -
 src/gpu/VirtualFluids_GPU/GPU/LBMKernel.cu             | 2 +-
 src/gpu/VirtualFluids_GPU/GPU/PrecursorBCs27.cu        | 1 -
 4 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/gpu/VirtualFluids_GPU/Calculation/UpdateGrid27.cpp b/src/gpu/VirtualFluids_GPU/Calculation/UpdateGrid27.cpp
index 17aea9cc1..cb9563aaf 100644
--- a/src/gpu/VirtualFluids_GPU/Calculation/UpdateGrid27.cpp
+++ b/src/gpu/VirtualFluids_GPU/Calculation/UpdateGrid27.cpp
@@ -13,8 +13,6 @@
 #include "CollisionStrategy.h"
 #include "RefinementStrategy.h"
 
-#include "Output/DistributionDebugInspector.h"
-
 void UpdateGrid27::updateGrid(int level, unsigned int t)
 {
     //////////////////////////////////////////////////////////////////////////
@@ -24,13 +22,10 @@ void UpdateGrid27::updateGrid(int level, unsigned int t)
         updateGrid(level + 1, t);
     }
 
-    // DistributionDebugInspector pre_inspector(1, 0.0, 16.0, 1000.0, 1030.0, 500.0, 700.0, "Pre Collision");
-    // DistributionDebugInspector post_inspector(1, 0.0, 16.0, 1000.0, 1030.0, 500.0, 700.0, "Post Collision");
     //////////////////////////////////////////////////////////////////////////
     
     interactWithProbes(level, t);
 
-    // pre_inspector.inspect(para, level, t);
     //////////////////////////////////////////////////////////////////////////
 
     collision(this, para.get(), level, t);
diff --git a/src/gpu/VirtualFluids_GPU/GPU/GPU_Kernels.cuh b/src/gpu/VirtualFluids_GPU/GPU/GPU_Kernels.cuh
index b4bdb6171..b35e01eb9 100644
--- a/src/gpu/VirtualFluids_GPU/GPU/GPU_Kernels.cuh
+++ b/src/gpu/VirtualFluids_GPU/GPU/GPU_Kernels.cuh
@@ -1304,7 +1304,6 @@ __global__ void PrecursorDeviceDistributions( 	int* subgridDistanceIndices,
 												uint* neighborX, 
 												uint* neighborY, 
 												uint* neighborZ,
-												uint* typeOfGridNode,
 												uint* neighborsNT, 
 												uint* neighborsNB,
 												uint* neighborsST,
diff --git a/src/gpu/VirtualFluids_GPU/GPU/LBMKernel.cu b/src/gpu/VirtualFluids_GPU/GPU/LBMKernel.cu
index 0c12982fc..ae51ce98e 100644
--- a/src/gpu/VirtualFluids_GPU/GPU/LBMKernel.cu
+++ b/src/gpu/VirtualFluids_GPU/GPU/LBMKernel.cu
@@ -3247,7 +3247,7 @@ void PrecursorDevDistributions( LBMSimulationParameter* parameterDevice, QforPre
 	vf::cuda::CudaGrid grid = vf::cuda::CudaGrid(parameterDevice->numberofthreads, boundaryCondition->numberOfBCnodes);
 
 	PrecursorDeviceDistributions<<< grid.grid, grid.threads >>>(boundaryCondition->k, boundaryCondition->numberOfBCnodes, boundaryCondition->numberOfPrecursorNodes, parameterDevice->distributions.f[0],
-		parameterDevice->neighborX, parameterDevice->neighborY, parameterDevice->neighborZ, parameterDevice->typeOfGridNode,
+		parameterDevice->neighborX, parameterDevice->neighborY, parameterDevice->neighborZ,
 		boundaryCondition->planeNeighborNT, boundaryCondition->planeNeighborNB, boundaryCondition->planeNeighborST, boundaryCondition->planeNeighborSB,
 		boundaryCondition->weightsNT, boundaryCondition->weightsNB, boundaryCondition->weightsST, boundaryCondition->weightsSB,
 		boundaryCondition->last, boundaryCondition->current,
diff --git a/src/gpu/VirtualFluids_GPU/GPU/PrecursorBCs27.cu b/src/gpu/VirtualFluids_GPU/GPU/PrecursorBCs27.cu
index 3c3eeffa2..9c7958cdc 100644
--- a/src/gpu/VirtualFluids_GPU/GPU/PrecursorBCs27.cu
+++ b/src/gpu/VirtualFluids_GPU/GPU/PrecursorBCs27.cu
@@ -656,7 +656,6 @@ __global__ void PrecursorDeviceDistributions( 	int* subgridDistanceIndices,
 												uint* neighborX, 
 												uint* neighborY, 
 												uint* neighborZ,
-                                                uint* typeOfGridNode,
 												uint* neighborsNT, 
 												uint* neighborsNB,
 												uint* neighborsST,
-- 
GitLab