svFSIplus
Public Member Functions | Public Attributes | List of all members
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. More...
 
void bcast (const CmMod &cm_mod, std::vector< bool > &data) const
 bcast bool array More...
 
void bcast (const CmMod &cm_mod, std::string &data) const
 bcast char* More...
 
void bcast (const CmMod &cm_mod, double *data) const
 bcast double More...
 
void bcast (const CmMod &cm_mod, Vector< double > &data, const std::string &name="") const
 bcast double Vector More...
 
void bcast (const CmMod &cm_mod, Array< double > &data, const std::string &name="") const
 bcast double array More...
 
void bcast (const CmMod &cm_mod, int *data) const
 bcast int More...
 
void bcast (const CmMod &cm_mod, Vector< int > &data) const
 bcast int array More...
 
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
 
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 >
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/8]

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

bcast double array

◆ bcast() [2/8]

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

bcast bool.

◆ bcast() [3/8]

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

bcast double

◆ bcast() [4/8]

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

bcast int

◆ bcast() [5/8]

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

bcast char*

◆ bcast() [6/8]

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

bcast bool array

◆ bcast() [7/8]

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

bcast double Vector

◆ bcast() [8/8]

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

bcast int array


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