mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-10 02:25:33 -06:00
pass the EclipseState and the PhaseUsage objects to EclipseWriter
This commit is contained in:
parent
6727fe28fe
commit
8645d2c207
@ -108,11 +108,12 @@ try
|
||||
// Grid init
|
||||
grid.reset(new GridManager(eclipseState->getEclipseGrid()));
|
||||
auto &cGrid = *grid->c_grid();
|
||||
const PhaseUsage pu = Opm::phaseUsageFromDeck(deck);
|
||||
Opm::EclipseWriter outputWriter(param,
|
||||
deck,
|
||||
eclipseState,
|
||||
pu,
|
||||
cGrid.number_of_cells,
|
||||
cGrid.global_cell,
|
||||
cGrid.cartdims);
|
||||
cGrid.global_cell);
|
||||
|
||||
// Rock and fluid init
|
||||
props.reset(new BlackoilPropertiesFromDeck(deck, eclipseState, *grid->c_grid(), param));
|
||||
@ -131,7 +132,6 @@ try
|
||||
initStateBasic(*grid->c_grid(), *props, param, gravity[2], state);
|
||||
initBlackoilSurfvol(*grid->c_grid(), *props, state);
|
||||
enum { Oil = BlackoilPhases::Liquid, Gas = BlackoilPhases::Vapour };
|
||||
const PhaseUsage pu = props->phaseUsage();
|
||||
if (pu.phase_used[Oil] && pu.phase_used[Gas]) {
|
||||
const int np = props->numPhases();
|
||||
const int nc = grid->c_grid()->number_of_cells;
|
||||
|
@ -145,10 +145,10 @@ try
|
||||
}
|
||||
|
||||
|
||||
Opm::EclipseWriter outputWriter(param, deck,
|
||||
const PhaseUsage pu = Opm::phaseUsageFromDeck(deck);
|
||||
Opm::EclipseWriter outputWriter(param, eclipseState, pu,
|
||||
Opm::UgGridHelpers::numCells(*grid),
|
||||
Opm::UgGridHelpers::globalCell(*grid),
|
||||
Opm::UgGridHelpers::cartDims(*grid));
|
||||
Opm::UgGridHelpers::globalCell(*grid));
|
||||
|
||||
// Rock and fluid init
|
||||
props.reset(new BlackoilPropertiesFromDeck(deck, eclipseState,
|
||||
@ -176,7 +176,6 @@ try
|
||||
*props, param, gravity[2], state);
|
||||
initBlackoilSurfvol(grid->numCells(), *props, state);
|
||||
enum { Oil = BlackoilPhases::Liquid, Gas = BlackoilPhases::Vapour };
|
||||
const PhaseUsage pu = props->phaseUsage();
|
||||
if (pu.phase_used[Oil] && pu.phase_used[Gas]) {
|
||||
const int np = props->numPhases();
|
||||
const int nc = grid->numCells();
|
||||
|
Loading…
Reference in New Issue
Block a user