Copy and save a Grid copy in Writer; apply actnum
Simulators might modify the grid post EclipseState creation, so the Grid fetched from there is unreliable. Copy the Deck-provided grid and apply the manipulations at EclipseWriter construction time to ensure it uses the same dimensions and has the same properties as the simulator.
This commit is contained in:
@@ -141,9 +141,9 @@ BOOST_AUTO_TEST_CASE(EclipseWriteRestartWellInfo) {
|
||||
auto es = Parser::parse( eclipse_data_filename, ParseContext() );
|
||||
auto eclipseState = std::make_shared< EclipseState >( es );
|
||||
const auto num_cells = eclipseState->getInputGrid()->getCartesianSize();
|
||||
EclipseWriter eclipseWriter( eclipseState, num_cells, nullptr );
|
||||
EclipseWriter eclipseWriter( eclipseState, num_cells, nullptr, NNC() );
|
||||
|
||||
eclipseWriter.writeInit( NNC() );
|
||||
eclipseWriter.writeInit();
|
||||
|
||||
int countTimeStep = eclipseState->getSchedule()->getTimeMap()->numTimesteps();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user