mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-30 04:53:48 -06:00
ECL restart file output: rename 'regionIdx' to 'pvtRegionIdx'
This commit is contained in:
parent
2c8e1da7f3
commit
2f741214d4
@ -167,11 +167,7 @@ public:
|
||||
const auto &fs = elemCtx.intensiveQuantities(dofIdx, /*timeIdx=*/0).fluidState();
|
||||
typedef typename std::remove_const<typename std::remove_reference<decltype(fs)>::type>::type FluidState;
|
||||
unsigned globalDofIdx = elemCtx.globalSpaceIndex(dofIdx, /*timeIdx=*/0);
|
||||
unsigned regionIdx = elemCtx.primaryVars(dofIdx, /*timeIdx=*/0).pvtRegionIndex();
|
||||
Scalar po = Toolbox::value(fs.pressure(oilPhaseIdx));
|
||||
Scalar To = Toolbox::value(fs.temperature(oilPhaseIdx));
|
||||
Scalar XoG = Toolbox::value(fs.massFraction(oilPhaseIdx, gasCompIdx));
|
||||
Scalar XgO = Toolbox::value(fs.massFraction(gasPhaseIdx, oilCompIdx));
|
||||
unsigned pvtRegionIdx = elemCtx.primaryVars(dofIdx, /*timeIdx=*/0).pvtRegionIndex();
|
||||
|
||||
if (saturationsOutput_()) {
|
||||
for (unsigned phaseIdx = 0; phaseIdx < numPhases; ++ phaseIdx) {
|
||||
@ -187,22 +183,22 @@ public:
|
||||
}
|
||||
if (gasDissolutionFactorOutput_()) {
|
||||
gasDissolutionFactor_[globalDofIdx] =
|
||||
FluidSystem::template saturatedDissolutionFactor<FluidState, Scalar>(fs, gasPhaseIdx, regionIdx);
|
||||
FluidSystem::template saturatedDissolutionFactor<FluidState, Scalar>(fs, gasPhaseIdx, pvtRegionIdx);
|
||||
Valgrind::CheckDefined(gasDissolutionFactor_[globalDofIdx]);
|
||||
}
|
||||
if (gasFormationVolumeFactorOutput_()) {
|
||||
gasFormationVolumeFactor_[globalDofIdx] =
|
||||
FluidSystem::template formationVolumeFactor<FluidState, Scalar>(fs, gasPhaseIdx, regionIdx);
|
||||
FluidSystem::template formationVolumeFactor<FluidState, Scalar>(fs, gasPhaseIdx, pvtRegionIdx);
|
||||
Valgrind::CheckDefined(gasFormationVolumeFactor_[globalDofIdx]);
|
||||
}
|
||||
if (saturatedOilFormationVolumeFactorOutput_()) {
|
||||
saturatedOilFormationVolumeFactor_[globalDofIdx] =
|
||||
FluidSystem::template saturatedFormationVolumeFactor<FluidState, Scalar>(fs, oilPhaseIdx, regionIdx);
|
||||
FluidSystem::template saturatedFormationVolumeFactor<FluidState, Scalar>(fs, oilPhaseIdx, pvtRegionIdx);
|
||||
Valgrind::CheckDefined(saturatedOilFormationVolumeFactor_[globalDofIdx]);
|
||||
}
|
||||
if (oilSaturationPressureOutput_()) {
|
||||
oilSaturationPressure_[globalDofIdx] =
|
||||
FluidSystem::template saturationPressure<FluidState, Scalar>(fs, oilPhaseIdx, regionIdx);
|
||||
FluidSystem::template saturationPressure<FluidState, Scalar>(fs, oilPhaseIdx, pvtRegionIdx);
|
||||
Valgrind::CheckDefined(oilSaturationPressure_[globalDofIdx]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user