diff --git a/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp b/src/gpu/GridGenerator/grid/GridBuilder/LevelGridBuilder.cpp index 8911bcf67b3988c4cfe9bfc846b8c2030cfef496..73bcbdf2b7ee5956236842771e6d8891f6226de9 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++; } }