mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Show fault name in ResultInfo when picking
This commit is contained in:
parent
48d63495e5
commit
0a87811263
@ -1167,6 +1167,32 @@ void RimReservoirView::appendCellResultInfo(size_t gridIndex, size_t cellIndex,
|
|||||||
resultInfoText->append(QString("Well-cell connection info: Well Name: %1 Branch Id: %2 Segment Id: %3\n").arg(singleWellResultData->m_wellName).arg(wellResultCell->m_ertBranchId).arg(wellResultCell->m_ertSegmentId));
|
resultInfoText->append(QString("Well-cell connection info: Well Name: %1 Branch Id: %2 Segment Id: %3\n").arg(singleWellResultData->m_wellName).arg(wellResultCell->m_ertBranchId).arg(wellResultCell->m_ertSegmentId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (gridIndex == 0)
|
||||||
|
{
|
||||||
|
bool foundFault = false;
|
||||||
|
|
||||||
|
for (size_t i = 0; i < grid->faults().size(); i++)
|
||||||
|
{
|
||||||
|
if (foundFault) continue;
|
||||||
|
|
||||||
|
const RigFault* rigFault = grid->faults().at(i);
|
||||||
|
const std::vector<RigFault::FaultFace>& faultFaces = rigFault->faultFaces();
|
||||||
|
|
||||||
|
for (size_t fIdx = 0; fIdx < faultFaces.size(); fIdx++)
|
||||||
|
{
|
||||||
|
if (foundFault) continue;
|
||||||
|
|
||||||
|
if (faultFaces[fIdx].m_nativeGlobalCellIndex == cellIndex ||
|
||||||
|
faultFaces[fIdx].m_oppositeGlobalCellIndex == cellIndex)
|
||||||
|
{
|
||||||
|
resultInfoText->append(QString("Fault Name: %1\n").arg(rigFault->name()));
|
||||||
|
foundFault = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -436,11 +436,7 @@ void RiuViewer::handlePickAction(int winPosX, int winPosY)
|
|||||||
cellIndex = cellIndices->get(faceIndex);
|
cellIndex = cellIndices->get(faceIndex);
|
||||||
|
|
||||||
m_reservoirView->pickInfo(gridIndex, cellIndex, localIntersectionPoint, &pickInfo);
|
m_reservoirView->pickInfo(gridIndex, cellIndex, localIntersectionPoint, &pickInfo);
|
||||||
|
m_reservoirView->appendCellResultInfo(gridIndex, cellIndex, &resultInfo);
|
||||||
if (isAnimationActive())
|
|
||||||
{
|
|
||||||
m_reservoirView->appendCellResultInfo(gridIndex, cellIndex, &resultInfo);
|
|
||||||
}
|
|
||||||
#if 0
|
#if 0
|
||||||
const RigReservoir* reservoir = m_reservoirView->eclipseCase()->reservoirData();
|
const RigReservoir* reservoir = m_reservoirView->eclipseCase()->reservoirData();
|
||||||
const RigGridBase* grid = reservoir->grid(gridIndex);
|
const RigGridBase* grid = reservoir->grid(gridIndex);
|
||||||
|
Loading…
Reference in New Issue
Block a user