mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Whitespace fixes and style consistency.
This commit is contained in:
parent
544aeea40b
commit
8977d64bc6
@ -140,7 +140,7 @@ public:
|
||||
{
|
||||
if (priVars.primaryVarsMeaning() == PrimaryVariables::Sw_po_Sg) {
|
||||
// -> threephase case
|
||||
assert( not(priVars.primaryVarsMeaning() == PrimaryVariables::OnePhase_p) );
|
||||
assert( priVars.primaryVarsMeaning() != PrimaryVariables::OnePhase_p );
|
||||
Sg = priVars.makeEvaluation(Indices::compositionSwitchIdx, timeIdx);
|
||||
} else if (priVars.primaryVarsMeaning() == PrimaryVariables::Sw_pg_Rv) {
|
||||
// -> gas-water case
|
||||
@ -206,10 +206,9 @@ public:
|
||||
// update the Saturation functions for the blackoil solvent module.
|
||||
asImp_().solventPostSatFuncUpdate_(elemCtx, dofIdx, timeIdx);
|
||||
|
||||
Evaluation SoMax=0;
|
||||
Evaluation SoMax = 0.0;
|
||||
if (FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx)) {
|
||||
SoMax =
|
||||
Opm::max(fluidState_.saturation(oilPhaseIdx),
|
||||
SoMax = Opm::max(fluidState_.saturation(oilPhaseIdx),
|
||||
elemCtx.problem().maxOilSaturation(globalSpaceIdx));
|
||||
}
|
||||
|
||||
|
@ -267,7 +267,8 @@ public:
|
||||
// determine the meaning of the primary variables
|
||||
if (FluidSystem::numActivePhases() == 1) {
|
||||
primaryVarsMeaning_ = OnePhase_p;
|
||||
}else if ((gasPresent && oilPresent) || (onlyWater && FluidSystem::phaseIsActive(oilPhaseIdx)) ){
|
||||
}
|
||||
else if ((gasPresent && oilPresent) || (onlyWater && FluidSystem::phaseIsActive(oilPhaseIdx))) {
|
||||
// gas and oil: both hydrocarbon phases are in equilibrium (i.e., saturated
|
||||
// with the "protagonist" component of the other phase.)
|
||||
primaryVarsMeaning_ = Sw_po_Sg;
|
||||
|
Loading…
Reference in New Issue
Block a user