mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 02:30:18 -06:00
Minor simplification: make fw_face from fw_cell.
This commit is contained in:
parent
3888904e61
commit
748b3d3fdd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user