Merge pull request #189 from atgeirr/add-minpv

Add MINPV support to grid creation for fully implicit sims.
This commit is contained in:
Bård Skaflestad 2014-08-29 09:16:55 +02:00
commit be589ba5f3
2 changed files with 10 additions and 2 deletions

View File

@ -108,7 +108,11 @@ try
std::shared_ptr<EclipseState> eclipseState(new EclipseState(deck));
// Grid init
grid.reset(new GridManager(eclipseState->getEclipseGrid()));
std::vector<double> porv;
if (eclipseState->hasDoubleGridProperty("PORV")) {
porv = eclipseState->getDoubleGridProperty("PORV")->getData();
}
grid.reset(new GridManager(eclipseState->getEclipseGrid(), porv));
auto &cGrid = *grid->c_grid();
const PhaseUsage pu = Opm::phaseUsageFromDeck(deck);
Opm::EclipseWriter outputWriter(param,

View File

@ -135,7 +135,11 @@ try
// Grid init
grid.reset(new Dune::CpGrid());
grid->processEclipseFormat(deck, false, false, false);
std::vector<double> porv;
if (eclipseState->hasDoubleGridProperty("PORV")) {
porv = eclipseState->getDoubleGridProperty("PORV")->getData();
}
grid->processEclipseFormat(deck, false, false, false, porv);
const PhaseUsage pu = Opm::phaseUsageFromDeck(deck);
Opm::EclipseWriter outputWriter(param, eclipseState, pu,