computing the density of segment mixture and pressure drop earlier

the density of segmetn mixture will be used in the well flux
calculation.
This commit is contained in:
Kai Bao committed 2015-12-01 00:06:45 +01:00
1 parent ba7b3e728c
commit d5f917d1ac
1 file changed
+3 -2
@@ -516,6 +516,9 @@ namespace Opm {
return;
}
asImpl().computeSegmentDensities(state);
asImpl().computeSegmentPressuresDelta(state);
std::vector<ADB> mob_perfcells;
std::vector<ADB> b_perfcells;
asImpl().extractWellPerfProperties(mob_perfcells, b_perfcells);
@@ -530,8 +533,6 @@ namespace Opm {
V aliveWells;
std::vector<ADB> cq_s;
asImpl().computeWellFlux(state, mob_perfcells, b_perfcells, aliveWells, cq_s);
asImpl().computeSegmentDensities(state, well_state);
asImpl().computeSegmentPressuresDelta(state);
asImpl().updatePerfPhaseRatesAndPressures(cq_s, state, well_state);
asImpl().addWellFluxEq(cq_s, state);
asImpl().addWellContributionToMassBalanceEq(cq_s, state, well_state);