Create placeholder results for main case in case group

This commit is contained in:
Magne Sjaastad
2014-10-28 10:15:20 +01:00
parent 55b5da018c
commit 79b45e7008

View File

@@ -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")