mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#725 Grid Case Group: SOIL is not computed when loading multiple cases into a group
This commit is contained in:
@@ -180,6 +180,10 @@ void RimIdenticalGridCaseGroup::loadMainCaseAndActiveCellInfo()
|
|||||||
RigCaseData* rigCaseData = mainCase->reservoirData();
|
RigCaseData* rigCaseData = mainCase->reservoirData();
|
||||||
CVF_ASSERT(rigCaseData);
|
CVF_ASSERT(rigCaseData);
|
||||||
|
|
||||||
|
RifReaderInterface::PorosityModelResultType poroModel = RifReaderInterface::MATRIX_RESULTS;
|
||||||
|
mainCase->results(poroModel)->cellResults()->createPlaceholderResultEntries();
|
||||||
|
|
||||||
|
|
||||||
// Action A : Read active cell info
|
// Action A : Read active cell info
|
||||||
// Read active cell info from all source cases. The file access is optimized for this purpose, and result meta data
|
// Read active cell info from all source cases. The file access is optimized for this purpose, and result meta data
|
||||||
// is copied from main case to all other cases (see "Action B")
|
// is copied from main case to all other cases (see "Action B")
|
||||||
@@ -245,11 +249,15 @@ void RimIdenticalGridCaseGroup::loadMainCaseAndActiveCellInfo()
|
|||||||
RimDefines::ResultCatType resultType = resultInfos[resIdx].m_resultType;
|
RimDefines::ResultCatType resultType = resultInfos[resIdx].m_resultType;
|
||||||
QString resultName = resultInfos[resIdx].m_resultName;
|
QString resultName = resultInfos[resIdx].m_resultName;
|
||||||
bool needsToBeStored = resultInfos[resIdx].m_needsToBeStored;
|
bool needsToBeStored = resultInfos[resIdx].m_needsToBeStored;
|
||||||
|
bool mustBeCalculated = resultInfos[resIdx].m_mustBeCalculated;
|
||||||
|
|
||||||
size_t scalarResultIndex = cellResultsStorage->cellResults()->findScalarResultIndex(resultType, resultName);
|
size_t scalarResultIndex = cellResultsStorage->cellResults()->findScalarResultIndex(resultType, resultName);
|
||||||
if (scalarResultIndex == cvf::UNDEFINED_SIZE_T)
|
if (scalarResultIndex == cvf::UNDEFINED_SIZE_T)
|
||||||
{
|
{
|
||||||
size_t scalarResultIndex = cellResultsStorage->cellResults()->addEmptyScalarResult(resultType, resultName, needsToBeStored);
|
size_t scalarResultIndex = cellResultsStorage->cellResults()->addEmptyScalarResult(resultType, resultName, needsToBeStored);
|
||||||
|
|
||||||
|
if (mustBeCalculated) cellResultsStorage->cellResults()->setMustBeCalculated(scalarResultIndex);
|
||||||
|
|
||||||
cellResultsStorage->cellResults()->setTimeStepDates(scalarResultIndex, timeStepDates);
|
cellResultsStorage->cellResults()->setTimeStepDates(scalarResultIndex, timeStepDates);
|
||||||
|
|
||||||
std::vector< std::vector<double> >& dataValues = cellResultsStorage->cellResults()->cellScalarResults(scalarResultIndex);
|
std::vector< std::vector<double> >& dataValues = cellResultsStorage->cellResults()->cellScalarResults(scalarResultIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user