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:
Arne Morten Kvarving 2024-04-24 10:30:46 +02:00
parent cc5f692bb3
commit 3ec8a22e59

View File

@ -128,10 +128,9 @@ BOOST_AUTO_TEST_CASE(NoNNC)
END)");
Grid grid;
EclipseGrid eclGrid(deck);
EclipseState eclState(deck);
grid.processEclipseFormat(&eclGrid, &eclState, false, false, false);
grid.processEclipseFormat(&eclState.getInputGrid(), &eclState, false, false, false);
const auto& gridView = grid.leafGridView();
CartesianIndexMapper cartMapper = Dune::CartesianIndexMapper<Grid>(grid);