mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#331) Properly shown POR values by checking for element type.
We are calculating and using an elmNode POR result to correctly respect the element type.
This commit is contained in:
@@ -374,3 +374,17 @@ void RigFemPart::findIntersectingCells(const cvf::BoundingBox& inputBB, std::vec
|
||||
m_elementSearchTree->findIntersections(inputBB, elementIndices);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RigFemPart::elementNodeResultCount() const
|
||||
{
|
||||
int lastElmIdx = this->elementCount() - 1;
|
||||
if (lastElmIdx < 0) return 0;
|
||||
RigElementType elmType = this->elementType(lastElmIdx);
|
||||
int elmNodeCount = RigFemTypes::elmentNodeCount(elmType);
|
||||
size_t lastElmResultIdx = this->elementNodeResultIdx(lastElmIdx, elmNodeCount -1);
|
||||
|
||||
return lastElmResultIdx + 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user