mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make face test robust
This commit is contained in:
@@ -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 );
|
||||||
|
|||||||
Reference in New Issue
Block a user