Global MPI operations
Functions
pivot.h File Reference
#include <mpi.h>
#include <vector>

Functions

void PivotD (std::vector< double > &x, MPI_Comm const &icomm=MPI_COMM_WORLD)
 

Function Documentation

◆ PivotD()

void PivotD ( std::vector< double > &  x,
MPI_Comm const &  icomm = MPI_COMM_WORLD 
)

Exchanges global minimum and maximum of the global vector x .

Parameters
[in,out]xlocal vector (double) on my process
[in]icommcommunicator group for MPI