Skip to content
Snippets Groups Projects
Commit 50d87a20 authored by schoen's avatar schoen
Browse files

Bug fixed... no velocity was set on velocity BCs due to converting real to uint

parent 88931b90
No related branches found
No related tags found
1 merge request!35Kernel factory simplified
......@@ -314,10 +314,9 @@ void LevelGridBuilder::getVelocityValues(real* vx, real* vy, real* vz, int* indi
for(std::size_t i = 0; i < boundaryCondition->indices.size(); i++)
{
indices[allIndicesCounter] = grids[level]->getSparseIndex(boundaryCondition->indices[i]) +1;
vx[allIndicesCounter] = (uint)boundaryCondition->getVx((uint)i);
vy[allIndicesCounter] = (uint)boundaryCondition->getVy((uint)i);
vz[allIndicesCounter] = (uint)boundaryCondition->getVz((uint)i);
vx[allIndicesCounter] = (real)boundaryCondition->getVx((uint)i);
vy[allIndicesCounter] = (real)boundaryCondition->getVy((uint)i);
vz[allIndicesCounter] = (real)boundaryCondition->getVz((uint)i);
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