23 const thrust::host_vector<real_type>& global,
const MPITopology& g)
25 assert( global.size() == g.global().size());
26 thrust::host_vector<real_type> temp(g.local().size());
28 MPI_Comm_rank( g.communicator(), &rank);
30 for(
unsigned idx = 0; idx<g.local().size(); idx++)
33 g.local2globalIdx( idx, rank, gIdx);
34 temp[idx] = global[gIdx];
MPI_Vector< thrust::host_vector< real_type > > global2local(const thrust::host_vector< real_type > &global, const MPITopology &g)
Take the relevant local part of a global vector.
Definition mpi_evaluation.h:22