mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 02:00:59 -06:00
Rename terminalOutput() -> terminalOutputEnabled().
This commit is contained in:
parent
cf3719d707
commit
1e6ecb173f
@ -167,7 +167,7 @@ namespace Opm {
|
||||
WellStateFullyImplicitBlackoil& well_state);
|
||||
|
||||
/// Return true if output to cout is wanted.
|
||||
bool terminalOutput() const;
|
||||
bool terminalOutputEnabled() const;
|
||||
|
||||
/// Compute convergence based on total mass balance (tol_mb) and maximum
|
||||
/// residual mass balance (tol_cnv).
|
||||
|
@ -278,7 +278,7 @@ namespace detail {
|
||||
template <class Grid>
|
||||
bool
|
||||
BlackoilModel<Grid>::
|
||||
terminalOutput() const
|
||||
terminalOutputEnabled() const
|
||||
{
|
||||
return terminal_output_;
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ namespace Opm
|
||||
if (isOscillate) {
|
||||
omega -= relaxIncrement();
|
||||
omega = std::max(omega, relaxMax());
|
||||
if (model_.terminalOutput()) {
|
||||
if (model_.terminalOutputEnabled()) {
|
||||
std::cout << " Oscillating behavior detected: Relaxation set to " << omega << std::endl;
|
||||
}
|
||||
}
|
||||
@ -113,7 +113,7 @@ namespace Opm
|
||||
}
|
||||
|
||||
if (!converged) {
|
||||
if (model_.terminalOutput()) {
|
||||
if (model_.terminalOutputEnabled()) {
|
||||
std::cerr << "WARNING: Failed to compute converged solution in " << iteration << " iterations." << std::endl;
|
||||
}
|
||||
return -1; // -1 indicates that the solver has to be restarted
|
||||
|
Loading…
Reference in New Issue
Block a user