Updated OutputWriter signature.

This commit is contained in:
Joakim Hove
2016-09-08 09:26:10 +02:00
parent 6962eb070c
commit ff333b4112
2 changed files with 3 additions and 6 deletions

View File

@@ -657,9 +657,8 @@ namespace Opm
const Grid& grid = grid_init_->grid();
if( output && output_ecl && output_cout_)
{
EclipseWriter writer(eclipse_state_,
Opm::UgGridHelpers::numCells(grid),
Opm::UgGridHelpers::globalCell(grid));
const EclipseGrid& inputGrid = *eclipse_state_->getInputGrid();
EclipseWriter writer(eclipse_state_, UgGridHelpers::createEclipseGrid( grid , inputGrid ));
writer.writeInitAndEgrid(geoprops_->simProps(grid),
geoprops_->nonCartesianConnections());
}

View File

@@ -336,9 +336,7 @@ namespace Opm
new BlackoilMatlabWriter< Grid >( grid, outputDir_ ) : 0 ),
eclWriter_( output_ && parallelOutput_->isIORank() &&
param.getDefault("output_ecl", true) ?
new EclipseWriter(eclipseState,
parallelOutput_->numCells(),
parallelOutput_->globalCell())
new EclipseWriter(eclipseState,UgGridHelpers::createEclipseGrid( grid , *eclipseState->getInputGrid()))
: 0 ),
eclipseState_(eclipseState),
asyncOutput_()