OGS
BaseLib::MPI Namespace Reference

Functions

static int reduceMin (int val)
 

Function Documentation

◆ reduceMin()

static int BaseLib::MPI::reduceMin ( int val)
inlinestatic

Definition at line 18 of file MPI.h.

19{
20 int result;
21 MPI_Allreduce(&val, &result, 1, MPI_INTEGER, MPI_MIN, PETSC_COMM_WORLD);
22 return result;
23}

Referenced by NumLib::NonlinearSolver< NonlinearSolverTag::Newton >::solve().