Made the solveWellEq() method return if it converged.

Also use this to avoid updating if not converged in the
multi-segment version.
This commit is contained in:
Atgeirr Flø Rasmussen
2015-11-19 13:49:42 +01:00
committed by Kai Bao
parent b6ede37ca3
commit 233a275191
4 changed files with 35 additions and 30 deletions

View File

@@ -392,7 +392,7 @@ namespace Opm {
extractWellPerfProperties(std::vector<ADB>& mob_perfcells,
std::vector<ADB>& b_perfcells) const;
void
bool
solveWellEq(const std::vector<ADB>& mob_perfcells,
const std::vector<ADB>& b_perfcells,
SolutionState& state,