dune-grid-glue  2.8.0
Functions
Dune::Parallel Namespace Reference

Functions

template<typename OP , typename... Args>
void MPI_AllApply (MPI_Comm mpicomm, OP &&op, const Args &... data)
 apply an operator locally to a difstributed data set More...
 

Function Documentation

◆ MPI_AllApply()

template<typename OP , typename... Args>
void Dune::Parallel::MPI_AllApply ( MPI_Comm  mpicomm,
OP &&  op,
const Args &...  data 
)

apply an operator locally to a difstributed data set

We consider distributed data, available on all processes in mpicomm. We ensure that the data is sent to each process so that operator op can be applyed on each processor locally. This is helpful, if op also involved other local data.

Parameters
mpicommcommunicator which onctaines the distributed data
opcallable which should be applied to the distributed data
datavariadic list of vectors containing the local data