diff --git a/ApplicationCode/ModelVisualization/RivSimWellPipesPartMgr.cpp b/ApplicationCode/ModelVisualization/RivSimWellPipesPartMgr.cpp index 33ca8f2651..1e57b5be6f 100644 --- a/ApplicationCode/ModelVisualization/RivSimWellPipesPartMgr.cpp +++ b/ApplicationCode/ModelVisualization/RivSimWellPipesPartMgr.cpp @@ -308,7 +308,7 @@ void RivSimWellPipesPartMgr::buildWellPipeParts(const caf::DisplayCoordTransform cvf::Vec3d anchor = displayXf->transformToDisplayCoord(defaultLocationInDomainCoord);; const RigWellResultPoint* wResCell = wResFrame.findResultCell(wellResultPoint.m_gridIndex, wellResultPoint.m_gridCellIndex); - if (wResCell && wResCell->m_isOpen) + if (wResCell->isValid()) { CompletionVizData data(anchor, defaultWellPathDirection, wResCell->connectionFactor(), globalCellIndex); diff --git a/ApplicationCode/ProjectDataModel/RimEclipseCase.cpp b/ApplicationCode/ProjectDataModel/RimEclipseCase.cpp index 3109a37139..0f7397be7a 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseCase.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseCase.cpp @@ -408,7 +408,7 @@ const RigVirtualPerforationTransmissibilities* RimEclipseCase::computeAndGetVirt { for (const auto& r : wellResultBranch.m_branchResultPoints) { - if (r.isValid() && r.m_isOpen) + if (r.isValid()) { RigCompletionData compData(wellRes->m_wellName, RigCompletionDataGridCell(r.m_gridCellIndex, rigEclipseCase->mainGrid()), 0); compData.setTransmissibility(r.connectionFactor());