Renamed initTwophaseStateBasic() -> initStateBasic().
This commit is contained in:
parent
9379263646
commit
4c37676338
@ -327,7 +327,7 @@ main(int argc, char** argv)
|
||||
gravity[2] = deck.hasField("NOGRAV") ? 0.0 : Opm::unit::gravity;
|
||||
// Init state variables (saturation and pressure).
|
||||
if (param.has("init_saturation")) {
|
||||
initStateTwophaseBasic(*grid->c_grid(), *props, param, gravity[2], state);
|
||||
initStateBasic(*grid->c_grid(), *props, param, gravity[2], state);
|
||||
} else {
|
||||
initStateFromDeck(*grid->c_grid(), *props, deck, gravity[2], state);
|
||||
}
|
||||
@ -351,7 +351,7 @@ main(int argc, char** argv)
|
||||
// Gravity.
|
||||
gravity[2] = param.getDefault("gravity", 0.0);
|
||||
// Init state variables (saturation and pressure).
|
||||
initStateTwophaseBasic(*grid->c_grid(), *props, param, gravity[2], state);
|
||||
initStateBasic(*grid->c_grid(), *props, param, gravity[2], state);
|
||||
}
|
||||
|
||||
// Extra fluid init for transport solver.
|
||||
|
@ -53,11 +53,11 @@ namespace Opm
|
||||
/// In all three cases, pressure is initialised hydrostatically.
|
||||
/// In case 2) and 3), the depth of the first cell is used as reference depth.
|
||||
template <class State>
|
||||
void initStateTwophaseBasic(const UnstructuredGrid& grid,
|
||||
const IncompPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state);
|
||||
void initStateBasic(const UnstructuredGrid& grid,
|
||||
const IncompPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state);
|
||||
|
||||
/// Initialize a two-phase state from input deck.
|
||||
/// If EQUIL is present:
|
||||
|
@ -289,11 +289,11 @@ namespace Opm
|
||||
/// In all three cases, pressure is initialised hydrostatically.
|
||||
/// In case 2) and 3), the depth of the first cell is used as reference depth.
|
||||
template <class State>
|
||||
void initStateTwophaseBasic(const UnstructuredGrid& grid,
|
||||
const IncompPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state)
|
||||
void initStateBasic(const UnstructuredGrid& grid,
|
||||
const IncompPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state)
|
||||
{
|
||||
const int num_phases = props.numPhases();
|
||||
if (num_phases != 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user