#7944 Cell selection: Avoid crash for Pflotran simulation case

This commit is contained in:
Magne Sjaastad committed 2021-09-02 15:55:43 +02:00
1 parent 97d678d9e8
commit e961dce97d
2 files changed
+6 -7

No files matched your search

@@ -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 ( ... )
+1 -2
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;