#2683 Well CF Visualization: Show connection factors on closed connections

This commit is contained in:
Magne Sjaastad 2018-04-19 20:18:15 +02:00
parent 7676ba4f20
commit c16c10e774
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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());