mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-02 04:26:55 -06:00
Improve convergence output.
- Add CNV{W,O,G} to output. - Make output a bit tighter. - Avoid printing extra newline and header for each iteration.
This commit is contained in:
parent
2a032dec71
commit
4270d51683
@ -1886,20 +1886,19 @@ namespace {
|
||||
|
||||
bool converged = converged_MB && converged_CNV && converged_Well;
|
||||
|
||||
std::cout << "\nIteration OIL WATER GAS WELL-FLOW WELL-CONTROL\n"
|
||||
<< std::setw(9) << iteration << std::setprecision(4)
|
||||
<< std::setw(13) << mass_balance_residual_water
|
||||
<< std::setw(13) << mass_balance_residual_oil
|
||||
<< std::setw(13) << mass_balance_residual_gas
|
||||
<< std::setw(13) << residualWellFlux
|
||||
<< std::setw(13) << residualWell
|
||||
if (iteration == 0) {
|
||||
std::cout << "\nIter MB(OIL) MB(WATER) MB(GAS) CNVO CNVO CNVW WELL-FLOW WELL-CNTRL\n";
|
||||
}
|
||||
std::cout << std::setw(4) << iteration << std::setprecision(4)
|
||||
<< std::setw(11) << mass_balance_residual_water
|
||||
<< std::setw(11) << mass_balance_residual_oil
|
||||
<< std::setw(11) << mass_balance_residual_gas
|
||||
<< std::setw(11) << CNVW
|
||||
<< std::setw(11) << CNVO
|
||||
<< std::setw(11) << CNVG
|
||||
<< std::setw(11) << residualWellFlux
|
||||
<< std::setw(11) << residualWell
|
||||
<< std::endl;
|
||||
|
||||
#ifdef OPM_VERBOSE
|
||||
std::cout << " CNVW " << CNVW << " CNVO " << CNVO << " CNVG " << CNVG << std::endl;
|
||||
std::cout << " converged_MB " << converged_MB << " converged_CNV " << converged_CNV
|
||||
<< " converged_Well " << converged_Well << " converged " << converged << std::endl;
|
||||
#endif
|
||||
return converged;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user