waLBerla 7.2
Loading...
Searching...
No Matches
Gatherv.h File Reference

Detailed Description

#include "Gather.h"
#include "MPIManager.h"
#include "MPIWrapper.h"
#include "SendBuffer.h"
#include "RecvBuffer.h"
#include "core/DataTypes.h"
#include "core/debug/Debug.h"
#include <string>
#include <vector>

Namespaces

namespace  walberla
 Storage for detected contacts which can be used to perform actions for all contacts, e.g.
 
namespace  walberla::mpi
 

Functions

template<typename T >
std::vector< T > walberla::mpi::gatherv (const std::vector< T > &values, int recvRank=0, MPI_Comm comm=MPI_COMM_WORLD)
 Gathers values from MPI processes and stores them into a std::vector.
 
template<>
std::vector< std::string > walberla::mpi::gatherv (const std::vector< std::string > &values, int recvRank, MPI_Comm comm)
 
template<typename T >
std::vector< T > walberla::mpi::allGatherv (const std::vector< T > &values, MPI_Comm comm=MPI_COMM_WORLD)
 Gathers values from MPI processes and stores them into a std::vector on all Processes.
 
template<>
std::vector< std::string > walberla::mpi::allGatherv (const std::vector< std::string > &values, MPI_Comm comm)
 
void walberla::mpi::gathervBuffer (const mpi::SendBuffer &sendBuffer, mpi::RecvBuffer &recvBuffer, int targetRank=0, MPI_Comm comm=MPI_COMM_WORLD)
 Gathers the buffer content on a single target process.
 
void walberla::mpi::allGathervBuffer (const mpi::SendBuffer &sendBuffer, mpi::RecvBuffer &recvBuffer, MPI_Comm comm=MPI_COMM_WORLD)
 Almost identical to mpi::gathervBuffer, the only difference: The result is stored on every process.