mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1645 Load dynamic NNC results from restart file
This commit is contained in:
@@ -348,7 +348,16 @@ QString RiuResultTextBuilder::nncResultText()
|
||||
if (m_reservoirView->currentFaultResultColors())
|
||||
{
|
||||
size_t scalarResultIdx = m_reservoirView->currentFaultResultColors()->scalarResultIndex();
|
||||
const std::vector<double>* nncValues = nncData->connectionScalarResult(scalarResultIdx);
|
||||
RimDefines::ResultCatType resultType = m_reservoirView->currentFaultResultColors()->resultType();
|
||||
const std::vector<double>* nncValues;
|
||||
if (resultType == RimDefines::STATIC_NATIVE)
|
||||
{
|
||||
nncValues = nncData->staticConnectionScalarResult(scalarResultIdx);
|
||||
}
|
||||
else if (resultType == RimDefines::DYNAMIC_NATIVE)
|
||||
{
|
||||
nncValues = nncData->dynamicConnectionScalarResult(scalarResultIdx, m_timeStepIndex);
|
||||
}
|
||||
if (nncValues)
|
||||
{
|
||||
QString resultVar = m_reservoirView->currentFaultResultColors()->resultVariableUiName();
|
||||
|
||||
Reference in New Issue
Block a user