mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #189 from atgeirr/add-minpv
Add MINPV support to grid creation for fully implicit sims.
This commit is contained in:
commit
be589ba5f3
@ -108,7 +108,11 @@ try
|
|||||||
std::shared_ptr<EclipseState> eclipseState(new EclipseState(deck));
|
std::shared_ptr<EclipseState> eclipseState(new EclipseState(deck));
|
||||||
|
|
||||||
// Grid init
|
// 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();
|
auto &cGrid = *grid->c_grid();
|
||||||
const PhaseUsage pu = Opm::phaseUsageFromDeck(deck);
|
const PhaseUsage pu = Opm::phaseUsageFromDeck(deck);
|
||||||
Opm::EclipseWriter outputWriter(param,
|
Opm::EclipseWriter outputWriter(param,
|
||||||
|
@ -135,7 +135,11 @@ try
|
|||||||
|
|
||||||
// Grid init
|
// Grid init
|
||||||
grid.reset(new Dune::CpGrid());
|
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);
|
const PhaseUsage pu = Opm::phaseUsageFromDeck(deck);
|
||||||
Opm::EclipseWriter outputWriter(param, eclipseState, pu,
|
Opm::EclipseWriter outputWriter(param, eclipseState, pu,
|
||||||
|
Loading…
Reference in New Issue
Block a user