Skip to content
Snippets Groups Projects
Commit a6fbced3 authored by LEGOLAS\lenz's avatar LEGOLAS\lenz
Browse files

corrects interface search such that no interface is generated at the boundary

parent 6331bc52
No related branches found
No related tags found
No related merge requests found
......@@ -149,9 +149,14 @@ void GridInterface::findOverlapStopper(const uint& indexOnCoarseGrid, GridImp* c
bool GridInterface::isNeighborFineInvalid(real x, real y, real z, const GridImp* coarseGrid, const GridImp* fineGrid)
{
const int neighbor = coarseGrid->transCoordToIndex(x, y, z);
if( coarseGrid->getField().isStopperOutOfGrid(neighbor) || coarseGrid->getField().is(neighbor, STOPPER_OUT_OF_GRID_BOUNDARY) )
return false;
const int indexOnFineGrid = getCoarseToFineIndexOnFineGrid(neighbor, coarseGrid, fineGrid);
if (indexOnFineGrid == -1)
return true;
return fineGrid->getField().isInvalidOutOfGrid(indexOnFineGrid) || fineGrid->getField().isStopperOutOfGrid(indexOnFineGrid);
}
......
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