Move rel-perm and viscosity calculations closer to use

This is an aesthetic change, only.
This commit is contained in:
Bård Skaflestad 2013-05-16 09:58:34 +02:00
parent fa2e02a579
commit c8fb7169aa

View File

@ -452,14 +452,14 @@ namespace Opm {
for (int phase = 0; phase < np; ++phase) {
const ADB cell_rho = pdepfdata_.phaseDensity(phase, p);
const V kr = pdepfdata_.phaseRelPerm(phase);
const ADB mu = pdepfdata_.phaseViscosity(phase, p);
const V head = nkgradp +
(grav_ * cell_rho.value().matrix()).array();
const UpwindSelector<double> upwind(grid_, ops_, head);
const V mf = upwind.select(kr / mu.value());
const V kr = pdepfdata_.phaseRelPerm(phase);
const ADB mu = pdepfdata_.phaseViscosity(phase, p);
const V mf = upwind.select(kr / mu.value());
flux += mf * head;
}