Add or fix foam-related indices for one- and two-phase cases.

This commit is contained in:
Atgeirr Flø Rasmussen
2019-10-10 16:08:04 +02:00
parent bc0eaca943
commit b9509cdf78
2 changed files with 19 additions and 8 deletions

View File

@@ -104,7 +104,7 @@ struct BlackOilTwoPhaseIndices
//! Index of the primary variable for the foam
static const int foamConcentrationIdx =
enableFoam ? polymerMoleWeightIdx + 1 : -1000;
enableFoam ? PVOffset + numPhases + numSolvents + numPolymers : -1000;
//! Index of the primary variable for temperature
static const int temperatureIdx =
@@ -167,9 +167,9 @@ struct BlackOilTwoPhaseIndices
static const int contiPolymerMWEqIdx =
numPolymers > 1 ? contiPolymerEqIdx + 1 : -1000;
//! Index of the continuity equation for the foam component
//! Index of the continuity equation for the foam component
static const int contiFoamEqIdx =
enableFoam ? contiPolymerMWEqIdx + 1 : -1000;
enableFoam ? PVOffset + numPhases + numSolvents + numPolymers : -1000;
//! Index of the continuity equation for energy
static const int contiEnergyEqIdx =