From 9768a2d2819a028c4e4f4fcc4989ee9bcf30ab17 Mon Sep 17 00:00:00 2001
From: schoen <schoen@irmb.tu-bs.de>
Date: Fri, 21 May 2021 10:48:30 +0200
Subject: [PATCH] fixed signed / unsigned issue in LevelGridBuilder

---
 .../grid/GridBuilder/LevelGridBuilder.cpp              | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp b/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp
index 8911bcf67..73bcbdf2b 100644
--- a/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp
+++ b/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp
@@ -216,13 +216,13 @@ void LevelGridBuilder::getSlipValues(real* normalX, real* normalY, real* normalZ
     int allIndicesCounter = 0;
     for (auto boundaryCondition : boundaryConditions[level]->slipBoundaryConditions)
     {
-        for (int i = 0; i < boundaryCondition->indices.size(); i++)
+        for (uint index = 0; index < boundaryCondition->indices.size(); index++)
         {
-            indices[allIndicesCounter] = grids[level]->getSparseIndex(boundaryCondition->indices[i]) + 1;
+            indices[allIndicesCounter] = grids[level]->getSparseIndex(boundaryCondition->indices[index]) + 1;
 
-            normalX[allIndicesCounter] = boundaryCondition->getNormalx(i);
-            normalY[allIndicesCounter] = boundaryCondition->getNormaly(i);
-            normalZ[allIndicesCounter] = boundaryCondition->getNormalz(i);
+            normalX[allIndicesCounter] = boundaryCondition->getNormalx(index);
+            normalY[allIndicesCounter] = boundaryCondition->getNormaly(index);
+            normalZ[allIndicesCounter] = boundaryCondition->getNormalz(index);
             allIndicesCounter++;
         }
     }
-- 
GitLab