Rename isRankZero() -> isIORank() for consistency.

This commit is contained in:
Atgeirr Flø Rasmussen 2016-10-19 10:28:57 +02:00
parent 8ed3418245
commit e4731fc14d
3 changed files with 3 additions and 3 deletions

View File

@ -488,7 +488,7 @@ namespace Opm
// Check for failure of linear solver.
if (!parameters_.ignoreConvergenceFailure_ && !result.converged) {
const std::string msg("Convergence failure for linear solver.");
if (isRankZero(parallelInformation_)) {
if (isIORank(parallelInformation_)) {
OpmLog::problem(msg);
}
OPM_THROW_NOLOG(LinearSolverProblem, msg);

View File

@ -291,7 +291,7 @@ namespace Opm
/// Return true if this is a serial run, or rank zero on an MPI run.
bool isRankZero(const boost::any& parallel_info)
bool isIORank(const boost::any& parallel_info)
{
#if HAVE_MPI
if (parallel_info.type() == typeid(ParallelISTLInformation)) {

View File

@ -60,7 +60,7 @@ namespace Opm
AutoDiffBlock<double>::V& b);
/// Return true if this is a serial run, or rank zero on an MPI run.
bool isRankZero(const boost::any& parallel_info);
bool isIORank(const boost::any& parallel_info);
} // namespace Opm