changed: pass the actual update value to relaxationFactorRate

this to avoid ussage of BVectorWell in interface. in preparation
for moving BVectorWell out of the well hierarchy.
This commit is contained in:
Arne Morten Kvarving
2022-11-04 14:57:11 +01:00
parent c8813a4dd0
commit 35b66886a9
3 changed files with 3 additions and 4 deletions

View File

@@ -746,7 +746,7 @@ updatePrimaryVariablesNewton(const BVectorWell& dwells,
processFractions();
// updating the total rates Q_t
const double relaxation_factor_rate = this->relaxationFactorRate(old_primary_variables, dwells);
const double relaxation_factor_rate = this->relaxationFactorRate(old_primary_variables, dwells[0][WQTotal]);
primary_variables_[WQTotal] = old_primary_variables[WQTotal] - dwells[0][WQTotal] * relaxation_factor_rate;
// updating the bottom hole pressure