Minor simplification: make fw_face from fw_cell.

This commit is contained in:
Atgeirr Flø Rasmussen 2013-05-07 10:08:09 +02:00
parent 3888904e61
commit 748b3d3fdd

View File

@ -176,9 +176,8 @@ namespace Opm
// Assemble linear system.
const ADB sw = ADB::variable(0, sw1, bpat);
const std::vector<ADB> pmobc = phaseMobility<ADB>(props_, allcells_, sw.value());
const std::vector<ADB> pmobf = upwind.select(pmobc);
const ADB fw_cell = fluxFunc(pmobc);
const ADB fw_face = fluxFunc(pmobf);
const ADB fw_face = upwind.select(fw_cell);
const ADB flux1 = fw_face * dflux;
const ADB qtr_ad = qpos + fw_cell*qneg;
const ADB transport_residual = sw - sw0 + dtpv*(ops_.div*flux1 - qtr_ad);