mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
Rename isRankZero() -> isIORank() for consistency.
This commit is contained in:
parent
8ed3418245
commit
e4731fc14d
@ -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);
|
||||
|
@ -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)) {
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user