adding debugging output for solveWellEq

to tell if the solveWellEq is successful.
This commit is contained in:
Kai Bao
2017-08-15 09:51:49 +02:00
parent a29be796e7
commit 52af70ad0e

View File

@@ -459,7 +459,11 @@ namespace Opm {
}
} while (it < 15);
if (!converged) {
if (converged) {
OpmLog::debug("Well equation solution gets converged with " + std::to_string(it) + " iterations");
} else {
OpmLog::debug("Well equation solution failed in getting converged with " + std::to_string(it) + " iterations");
well_state = well_state0;
setWellSolutions(well_state);
// also recover the old well controls