From f0cfba9de469e7b08a7726a098f9e8704e504b24 Mon Sep 17 00:00:00 2001
From: Anna Wellmann <a.wellmann@tu-braunschweig.de>
Date: Sat, 13 Nov 2021 10:23:00 +0100
Subject: [PATCH] Add comment

---
 src/gpu/GridGenerator/grid/GridImp.cu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gpu/GridGenerator/grid/GridImp.cu b/src/gpu/GridGenerator/grid/GridImp.cu
index ea74df26b..84d7b94dd 100644
--- a/src/gpu/GridGenerator/grid/GridImp.cu
+++ b/src/gpu/GridGenerator/grid/GridImp.cu
@@ -868,7 +868,7 @@ CUDA_HOST void GridImp::findFluidNodeIndices(bool splitDomain)
         if (sparseIndex == -1)
             continue;
         if (this->field.isFluid(index))
-            this->fluidNodeIndices.push_back((uint)sparseIndex+1);
+            this->fluidNodeIndices.push_back((uint)sparseIndex+1); // + 1 for numbering shift between GridGenerator and VF_GPU
     }
 
     // If splitDomain: find fluidNodeIndicesBorder and remove all indices in fluidNodeIndicesBorder from fluidNodeIndices
-- 
GitLab