svMultiPhysics
Loading...
Searching...
No Matches
cmType Class Reference

The cmType class stores data and defines methods used for mpi communication. More...

#include <CmMod.h>

Public Member Functions

void bcast (const CmMod &cm_mod, bool *data) const
 bcast bool.
void bcast (const CmMod &cm_mod, std::vector< bool > &data) const
 bcast bool array
void bcast (const CmMod &cm_mod, std::string &data) const
 bcast char*
void bcast (const CmMod &cm_mod, double *data) const
 bcast double
void bcast (const CmMod &cm_mod, Vector< double > &data, const std::string &name="") const
 bcast double Vector
void bcast (const CmMod &cm_mod, Array< double > &data, const std::string &name="") const
 bcast double array
void bcast (const CmMod &cm_mod, Array3< double > &data, const std::string &name="") const
 bcast double Array3
void bcast (const CmMod &cm_mod, int *data) const
 bcast int
void bcast (const CmMod &cm_mod, Vector< int > &data) const
 bcast int Vector
void bcast (const CmMod &cm_mod, unsigned int *data) const
 bcast unsigned int
void bcast (const CmMod &cm_mod, Array< int > &data, const std::string &name="") const
 bcast int array
void gather (const CmMod &cm_mod, const int *send_data, int send_count, int *recv_data, int recv_count, int root) const
 gather int array
void gather (const CmMod &cm_mod, const double *send_data, int send_count, double *recv_data, int recv_count, int root) const
 gather double array
void gather (const CmMod &cm_mod, const Vector< int > &send_data, Vector< int > &recv_data, int root) const
 gather int Vector
void gather (const CmMod &cm_mod, const Vector< double > &send_data, Vector< double > &recv_data, int root) const
 gather double Vector
void gatherv (const CmMod &cm_mod, const Vector< int > &send_data, Vector< int > &recv_data, const Vector< int > &recv_counts, const Vector< int > &displs, int root) const
 gatherv int Vector
void gatherv (const CmMod &cm_mod, const Vector< double > &send_data, Vector< double > &recv_data, const Vector< int > &recv_counts, const Vector< int > &displs, int root) const
 gatherv double Vector
void scatterv (const CmMod &cm_mod, const Vector< int > &send_data, const Vector< int > &send_counts, const Vector< int > &displs, Vector< int > &recv_data, int root) const
 scatterv int Vector
void scatterv (const CmMod &cm_mod, const Vector< double > &send_data, const Vector< int > &send_counts, const Vector< int > &displs, Vector< double > &recv_data, int root) const
 scatterv double Vector
void scatter (const CmMod &cm_mod, const int *send_data, int send_count, int *recv_data, int recv_count, int root) const
 scatter int array
void scatter (const CmMod &cm_mod, const double *send_data, int send_count, double *recv_data, int recv_count, int root) const
 scatter double array
void scatter (const CmMod &cm_mod, const Vector< int > &send_data, Vector< int > &recv_data, int root) const
 scatter int Vector
void scatter (const CmMod &cm_mod, const Vector< double > &send_data, Vector< double > &recv_data, int root) const
 scatter double Vector
template<typename T>
void bcast_enum (const CmMod &cm_mod, T *data) const
template<typename T>
void bcast_prop (const CmMod &cm_mod, std::map< T, double > &props) const
cm_mod::MpiCommWorldType com () const
 Returns commu handle.
int idcm () const
int id ()
bool mas (const CmMod &cm_mod) const
void new_cm (decltype(MPI_COMM_WORLD) comHandle)
int np () const
int nT ()
template<typename T>
T reduce (const CmMod &cm_mod, T u, MPI_Op op=MPI_SUM) const
template<typename T>
Vector< T > reduce (const CmMod &cm_mod, Vector< T > &u, MPI_Op op=MPI_SUM) const
bool seq () const
bool slv (const CmMod &cm_mod) const
int tF (const CmMod &cm_mod) const

Public Attributes

decltype(MPI_COMM_WORLD) cHndl
int taskId = 0
int nThreads = 0
int nProcs = 0

Detailed Description

The cmType class stores data and defines methods used for mpi communication.

Member Function Documentation

◆ bcast() [1/11]

void cmType::bcast ( const CmMod & cm_mod,
Array3< double > & data,
const std::string & name = "" ) const

bcast double Array3

◆ bcast() [2/11]

void cmType::bcast ( const CmMod & cm_mod,
Array< double > & data,
const std::string & name = "" ) const

bcast double array

◆ bcast() [3/11]

void cmType::bcast ( const CmMod & cm_mod,
Array< int > & data,
const std::string & name = "" ) const

bcast int array

◆ bcast() [4/11]

void cmType::bcast ( const CmMod & cm_mod,
bool * data ) const

bcast bool.

◆ bcast() [5/11]

void cmType::bcast ( const CmMod & cm_mod,
double * data ) const

bcast double

◆ bcast() [6/11]

void cmType::bcast ( const CmMod & cm_mod,
int * data ) const

bcast int

◆ bcast() [7/11]

void cmType::bcast ( const CmMod & cm_mod,
std::string & data ) const

bcast char*

◆ bcast() [8/11]

void cmType::bcast ( const CmMod & cm_mod,
std::vector< bool > & data ) const

bcast bool array

◆ bcast() [9/11]

void cmType::bcast ( const CmMod & cm_mod,
unsigned int * data ) const

bcast unsigned int

◆ bcast() [10/11]

void cmType::bcast ( const CmMod & cm_mod,
Vector< double > & data,
const std::string & name = "" ) const

bcast double Vector

◆ bcast() [11/11]

void cmType::bcast ( const CmMod & cm_mod,
Vector< int > & data ) const

bcast int Vector

◆ com()

decltype(MPI_COMM_WORLD) cmType::com ( ) const

Returns commu handle.

◆ gather() [1/4]

void cmType::gather ( const CmMod & cm_mod,
const double * send_data,
int send_count,
double * recv_data,
int recv_count,
int root ) const

gather double array

◆ gather() [2/4]

void cmType::gather ( const CmMod & cm_mod,
const int * send_data,
int send_count,
int * recv_data,
int recv_count,
int root ) const

gather int array

◆ gather() [3/4]

void cmType::gather ( const CmMod & cm_mod,
const Vector< double > & send_data,
Vector< double > & recv_data,
int root ) const

gather double Vector

◆ gather() [4/4]

void cmType::gather ( const CmMod & cm_mod,
const Vector< int > & send_data,
Vector< int > & recv_data,
int root ) const

gather int Vector

◆ gatherv() [1/2]

void cmType::gatherv ( const CmMod & cm_mod,
const Vector< double > & send_data,
Vector< double > & recv_data,
const Vector< int > & recv_counts,
const Vector< int > & displs,
int root ) const

gatherv double Vector

◆ gatherv() [2/2]

void cmType::gatherv ( const CmMod & cm_mod,
const Vector< int > & send_data,
Vector< int > & recv_data,
const Vector< int > & recv_counts,
const Vector< int > & displs,
int root ) const

gatherv int Vector

◆ scatter() [1/4]

void cmType::scatter ( const CmMod & cm_mod,
const double * send_data,
int send_count,
double * recv_data,
int recv_count,
int root ) const

scatter double array

◆ scatter() [2/4]

void cmType::scatter ( const CmMod & cm_mod,
const int * send_data,
int send_count,
int * recv_data,
int recv_count,
int root ) const

scatter int array

◆ scatter() [3/4]

void cmType::scatter ( const CmMod & cm_mod,
const Vector< double > & send_data,
Vector< double > & recv_data,
int root ) const

scatter double Vector

◆ scatter() [4/4]

void cmType::scatter ( const CmMod & cm_mod,
const Vector< int > & send_data,
Vector< int > & recv_data,
int root ) const

scatter int Vector

◆ scatterv() [1/2]

void cmType::scatterv ( const CmMod & cm_mod,
const Vector< double > & send_data,
const Vector< int > & send_counts,
const Vector< int > & displs,
Vector< double > & recv_data,
int root ) const

scatterv double Vector

◆ scatterv() [2/2]

void cmType::scatterv ( const CmMod & cm_mod,
const Vector< int > & send_data,
const Vector< int > & send_counts,
const Vector< int > & displs,
Vector< int > & recv_data,
int root ) const

scatterv int Vector


The documentation for this class was generated from the following files: