#7944 Cell selection: Avoid crash for Pflotran simulation case

This commit is contained in:
Magne Sjaastad 2021-09-02 13:15:14 +02:00
parent 97d678d9e8
commit e961dce97d
2 changed files with 6 additions and 7 deletions

View File

@ -121,13 +121,13 @@ public:
{
Opm::ECLInitFileData initData( init );
m_eclGraph.reset( new Opm::ECLGraph( Opm::ECLGraph::load( mainGrid, initData ) ) );
m_hasUnifiedRestartFile = false;
m_poreVolume = m_eclGraph->poreVolume();
try
{
m_eclGraph.reset( new Opm::ECLGraph( Opm::ECLGraph::load( mainGrid, initData ) ) );
m_hasUnifiedRestartFile = false;
m_poreVolume = m_eclGraph->poreVolume();
m_eclSaturationFunc.reset( new Opm::ECLSaturationFunc( *m_eclGraph, initData ) );
}
catch ( ... )

View File

@ -6369,8 +6369,7 @@ static bool ecl_grid_init_coord_section__( const ecl_grid_type * grid , int i, i
const int top_index = ecl_grid_get_top_valid_index( grid , i , j );
const int bottom_index = ecl_grid_get_bottom_valid_index( grid , i , j );
if (top_index == -1)
util_exit("% : no cell with a valid geometry description found in (i,j) = %d,%d - then what? \n",__func__ , i,j);
if (top_index == -1) return false;
{
point_type top_point;