mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added ACTNUM to static results for binary Eclipse files
p4#: 22189
This commit is contained in:
@@ -597,6 +597,9 @@ void RifReaderEclipseOutput::buildMetaData()
|
||||
staticDate.push_back(m_timeSteps.front());
|
||||
}
|
||||
|
||||
// Add ACTNUM
|
||||
matrixResultNames += "ACTNUM";
|
||||
|
||||
for (int i = 0; i < matrixResultNames.size(); ++i)
|
||||
{
|
||||
size_t resIndex = matrixModelResults->addEmptyScalarResult(RimDefines::STATIC_NATIVE, matrixResultNames[i], false);
|
||||
@@ -616,6 +619,9 @@ void RifReaderEclipseOutput::buildMetaData()
|
||||
staticDate.push_back(m_timeSteps.front());
|
||||
}
|
||||
|
||||
// Add ACTNUM
|
||||
fractureResultNames += "ACTNUM";
|
||||
|
||||
for (int i = 0; i < fractureResultNames.size(); ++i)
|
||||
{
|
||||
size_t resIndex = fractureModelResults->addEmptyScalarResult(RimDefines::STATIC_NATIVE, fractureResultNames[i], false);
|
||||
@@ -660,6 +666,14 @@ bool RifReaderEclipseOutput::staticResult(const QString& result, PorosityModelRe
|
||||
{
|
||||
CVF_ASSERT(values);
|
||||
|
||||
if (result.compare("ACTNUM", Qt::CaseInsensitive) == 0)
|
||||
{
|
||||
RigActiveCellInfo* activeCellInfo = m_eclipseCase->activeCellInfo(matrixOrFracture);
|
||||
values->resize(activeCellInfo->globalActiveCellCount(), 1.0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
openInitFile();
|
||||
|
||||
if(m_ecl_init_file)
|
||||
|
||||
Reference in New Issue
Block a user