mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-21 08:54:08 -06:00
fixed: use the eclipse grid from the eclipse state in test_nonnc
if we use a separate instance the actnum arrays get out of sync. in particular the two cells with PORV == 0 will not be marked as inactive in the actnum array of the separate instance. this leads to a segfault in lookUpData as the field props will have those cells filtered, while the grid still has the cells active.
This commit is contained in:
parent
cc5f692bb3
commit
3ec8a22e59
@ -128,10 +128,9 @@ BOOST_AUTO_TEST_CASE(NoNNC)
|
|||||||
|
|
||||||
END)");
|
END)");
|
||||||
Grid grid;
|
Grid grid;
|
||||||
EclipseGrid eclGrid(deck);
|
|
||||||
EclipseState eclState(deck);
|
EclipseState eclState(deck);
|
||||||
|
|
||||||
grid.processEclipseFormat(&eclGrid, &eclState, false, false, false);
|
grid.processEclipseFormat(&eclState.getInputGrid(), &eclState, false, false, false);
|
||||||
const auto& gridView = grid.leafGridView();
|
const auto& gridView = grid.leafGridView();
|
||||||
|
|
||||||
CartesianIndexMapper cartMapper = Dune::CartesianIndexMapper<Grid>(grid);
|
CartesianIndexMapper cartMapper = Dune::CartesianIndexMapper<Grid>(grid);
|
||||||
|
Loading…
Reference in New Issue
Block a user