mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-15 20:53:27 -06:00
putting the re-calculating wellflux inside if plyshlog
it only happens when shear effect calculation is needed. No point to re-calculate the well flux when no shear thinning needed.
This commit is contained in:
parent
9307a41fd5
commit
4f8ae4be73
@ -565,9 +565,9 @@ namespace Opm {
|
||||
V shear_mult_wells_v = Eigen::Map<V>(shear_mult_wells_.data(), shear_mult_wells_.size());
|
||||
ADB shear_mult_wells_adb = ADB::constant(shear_mult_wells_v);
|
||||
mob_perfcells[water_pos] = mob_perfcells[water_pos] / shear_mult_wells_adb;
|
||||
wellModel().computeWellFlux(state, mob_perfcells, b_perfcells, aliveWells, cq_s);
|
||||
}
|
||||
|
||||
wellModel().computeWellFlux(state, mob_perfcells, b_perfcells, aliveWells, cq_s);
|
||||
wellModel().updatePerfPhaseRatesAndPressures(cq_s, state, well_state);
|
||||
wellModel().addWellFluxEq(cq_s, state, residual_);
|
||||
addWellContributionToMassBalanceEq(cq_s, state, well_state);
|
||||
|
Loading…
Reference in New Issue
Block a user