#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

@@ -93,13 +93,7 @@ void RigSimulationWellCenterLineCalculator::calculateWellPipeCenterlineFromWellF
if (timeStepIndex < 0)
{
// Make sure we have computed the static representation of the well
if (wellResults->m_staticWellCells.m_wellResultBranches.size() == 0)
{
wellResults->computeStaticWellCellPath();
}
wellFramePtr = &wellResults->m_staticWellCells;
wellFramePtr = &wellResults->staticWellCells();
}
else
{