mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Create placeholder results for main case in case group
This commit is contained in:
@@ -158,12 +158,20 @@ void RimIdenticalGridCaseGroup::loadMainCaseAndActiveCellInfo()
|
||||
RimCase* mainCase = caseCollection()->reservoirs[0];
|
||||
mainCase->openEclipseGridFile();
|
||||
RigCaseData* mainEclipseCase = mainCase->reservoirData();
|
||||
if (!mainEclipseCase)
|
||||
if (mainEclipseCase)
|
||||
{
|
||||
RifReaderInterface::PorosityModelResultType poroModel = RifReaderInterface::MATRIX_RESULTS;
|
||||
RimReservoirCellResultsStorage* cellResultsStorage = mainCase->results(poroModel);
|
||||
|
||||
cellResultsStorage->cellResults()->createPlaceholderResultEntries();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Error message
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// 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
|
||||
// is copied from main case to all other cases (see "Action B")
|
||||
|
||||
Reference in New Issue
Block a user