#1266 If not computed, compute staticWellCellPath when needed

This commit is contained in:
Magne Sjaastad
2017-03-01 14:23:01 +01:00
parent da416409aa
commit 68ff093c61
5 changed files with 22 additions and 14 deletions

View File

@@ -84,11 +84,7 @@ void RivWellHeadPartMgr::buildWellHeadParts(size_t frameIndex)
RigSingleWellResultsData* wellResults = well->wellResults();
if (wellResults->m_staticWellCells.m_wellResultBranches.size() == 0)
{
wellResults->computeStaticWellCellPath();
}
if (wellResults->m_staticWellCells.m_wellResultBranches.size() == 0) return;
if (wellResults->staticWellCells().m_wellResultBranches.size() == 0) return;
if (!wellResults->hasWellResult(frameIndex)) return;