mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7944 Cell selection: Avoid crash for Pflotran simulation case
This commit is contained in:
@@ -121,13 +121,13 @@ public:
|
|||||||
{
|
{
|
||||||
Opm::ECLInitFileData initData( init );
|
Opm::ECLInitFileData initData( init );
|
||||||
|
|
||||||
m_eclGraph.reset( new Opm::ECLGraph( Opm::ECLGraph::load( mainGrid, initData ) ) );
|
|
||||||
|
|
||||||
m_hasUnifiedRestartFile = false;
|
|
||||||
m_poreVolume = m_eclGraph->poreVolume();
|
|
||||||
|
|
||||||
try
|
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 ) );
|
m_eclSaturationFunc.reset( new Opm::ECLSaturationFunc( *m_eclGraph, initData ) );
|
||||||
}
|
}
|
||||||
catch ( ... )
|
catch ( ... )
|
||||||
|
|||||||
3
ThirdParty/Ert/lib/ecl/ecl_grid.cpp
vendored
3
ThirdParty/Ert/lib/ecl/ecl_grid.cpp
vendored
@@ -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 top_index = ecl_grid_get_top_valid_index( grid , i , j );
|
||||||
const int bottom_index = ecl_grid_get_bottom_valid_index( grid , i , j );
|
const int bottom_index = ecl_grid_get_bottom_valid_index( grid , i , j );
|
||||||
|
|
||||||
if (top_index == -1)
|
if (top_index == -1) return false;
|
||||||
util_exit("% : no cell with a valid geometry description found in (i,j) = %d,%d - then what? \n",__func__ , i,j);
|
|
||||||
|
|
||||||
{
|
{
|
||||||
point_type top_point;
|
point_type top_point;
|
||||||
|
|||||||
Reference in New Issue
Block a user