Add MINPV support to grid creation for fully implicit sims.

This commit is contained in:
Atgeirr Flø Rasmussen
2014-08-25 16:05:42 +02:00
parent d8452145ae
commit 09eb0d455e
2 changed files with 10 additions and 2 deletions

View File

@@ -107,7 +107,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

@@ -137,7 +137,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,