Make face test robust

This commit is contained in:
Magne Sjaastad
2022-02-03 10:05:46 +01:00
parent 94a541f966
commit 2c0ebfd14c

View File

@@ -1132,7 +1132,18 @@ std::vector<WellPathCellIntersectionInfo>
extraIntersection.startMD = initialMD; extraIntersection.startMD = initialMD;
extraIntersection.endMD = firstIntersection.startMD; extraIntersection.endMD = firstIntersection.startMD;
extraIntersection.intersectedCellFaceIn = cvf::StructGridInterface::NO_FACE; extraIntersection.intersectedCellFaceIn = cvf::StructGridInterface::NO_FACE;
if ( firstIntersection.intersectedCellFaceIn != cvf::StructGridInterface::NO_FACE )
{
extraIntersection.intersectedCellFaceOut =
cvf::StructGridInterface::oppositeFace( firstIntersection.intersectedCellFaceIn );
}
else if ( firstIntersection.intersectedCellFaceOut != cvf::StructGridInterface::NO_FACE )
{
extraIntersection.intersectedCellFaceOut = firstIntersection.intersectedCellFaceOut; extraIntersection.intersectedCellFaceOut = firstIntersection.intersectedCellFaceOut;
}
extraIntersection.intersectionLengthsInCellCS = cvf::Vec3d::ZERO; extraIntersection.intersectionLengthsInCellCS = cvf::Vec3d::ZERO;
filteredIntersections.push_back( extraIntersection ); filteredIntersections.push_back( extraIntersection );