Add more residual output in getConvergence.

Output the residualWellFlux, residualWell, MB to monitor the convergence
process.
This commit is contained in:
Kai Bao 2014-05-16 13:52:33 +02:00
parent 55b0164d4a
commit 94e3fd3fcb

View File

@ -1682,11 +1682,13 @@ namespace {
bool converged = converged_MB && converged_CNV && converged_Well;
#ifdef OPM_VERBOSE
// #ifdef OPM_VERBOSE
std::cout << " residualWellFlux " << residualWellFlux << " residualWell " << residualWell << std::endl;
std::cout << " CNVW " << CNVW << " CNVO " << CNVO << " CNVG " << CNVG << std::endl;
std::cout << " MB " << fabs(BW_avg*RW_sum) << " " << fabs(BO_avg*RO_sum) << " " << fabs(BG_avg*RG_sum) << std::endl;
std::cout << " converged_MB " << converged_MB << " converged_CNV " << converged_CNV
<< " converged_Well " << converged_Well << " converged " << converged << std::endl;
#endif
// #endif
return converged;
}