mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Handle when it is not possible to read cases from disk in a grid group
p4#: 21230
This commit is contained in:
parent
a20640f25f
commit
665c2ace8b
@ -152,7 +152,11 @@ void RimIdenticalGridCaseGroup::loadMainCaseAndActiveCellInfo()
|
||||
RimCase* mainCase = caseCollection()->reservoirs[0];
|
||||
mainCase->openEclipseGridFile();
|
||||
RigCaseData* mainEclipseCase = mainCase->reservoirData();
|
||||
CVF_ASSERT(mainEclipseCase);
|
||||
if (!mainEclipseCase)
|
||||
{
|
||||
// Error message
|
||||
return;
|
||||
}
|
||||
|
||||
// Read active cell info from all source cases
|
||||
|
||||
@ -164,7 +168,8 @@ void RimIdenticalGridCaseGroup::loadMainCaseAndActiveCellInfo()
|
||||
|
||||
if (!rimReservoir->openAndReadActiveCellData(mainEclipseCase))
|
||||
{
|
||||
CVF_ASSERT(false);
|
||||
// Error message
|
||||
continue;
|
||||
}
|
||||
|
||||
info.incrementProgress();
|
||||
|
Loading…
Reference in New Issue
Block a user