Use direct deck-using version of grid construction method.

This commit is contained in:
Atgeirr Flø Rasmussen 2014-08-21 15:26:07 +02:00
parent bb9f0ee1dd
commit e35546070f

View File

@ -137,15 +137,7 @@ try
// Grid init
grid.reset(new Dune::CpGrid());
{
grdecl g = {};
GridManager::createGrdecl(deck, g);
grid->processEclipseFormat(g, 2e-12, false);
std::free(const_cast<double*>(g.mapaxes));
}
grid->processEclipseFormat(deck, false, false, false);
const PhaseUsage pu = Opm::phaseUsageFromDeck(deck);
Opm::EclipseWriter outputWriter(param, eclipseState, pu,