Rename terminalOutput() -> terminalOutputEnabled().

This commit is contained in:
Atgeirr Flø Rasmussen 2015-05-21 09:12:08 +02:00
parent cf3719d707
commit 1e6ecb173f
3 changed files with 4 additions and 4 deletions

View File

@ -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).

View File

@ -278,7 +278,7 @@ namespace detail {
template <class Grid>
bool
BlackoilModel<Grid>::
terminalOutput() const
terminalOutputEnabled() const
{
return terminal_output_;
}

View File

@ -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