Skip to content
Snippets Groups Projects
Commit 9768a2d2 authored by schoen's avatar schoen
Browse files

fixed signed / unsigned issue in LevelGridBuilder

parent 24db66bd
No related branches found
No related tags found
1 merge request!51Open source
...@@ -216,13 +216,13 @@ void LevelGridBuilder::getSlipValues(real* normalX, real* normalY, real* normalZ ...@@ -216,13 +216,13 @@ void LevelGridBuilder::getSlipValues(real* normalX, real* normalY, real* normalZ
int allIndicesCounter = 0; int allIndicesCounter = 0;
for (auto boundaryCondition : boundaryConditions[level]->slipBoundaryConditions) 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); normalX[allIndicesCounter] = boundaryCondition->getNormalx(index);
normalY[allIndicesCounter] = boundaryCondition->getNormaly(i); normalY[allIndicesCounter] = boundaryCondition->getNormaly(index);
normalZ[allIndicesCounter] = boundaryCondition->getNormalz(i); normalZ[allIndicesCounter] = boundaryCondition->getNormalz(index);
allIndicesCounter++; allIndicesCounter++;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment