|
svMultiPhysics
|
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, int *data) const |
| bcast int | |
| void | bcast (const CmMod &cm_mod, Vector< int > &data) const |
| bcast int Vector | |
| 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 |
The cmType class stores data and defines methods used for mpi communication.
| void cmType::bcast | ( | const CmMod & | cm_mod, |
| Array< double > & | data, | ||
| const std::string & | name = "" |
||
| ) | const |
bcast double array
| void cmType::bcast | ( | const CmMod & | cm_mod, |
| Array< int > & | data, | ||
| const std::string & | name = "" |
||
| ) | const |
bcast int array
| void cmType::bcast | ( | const CmMod & | cm_mod, |
| bool * | data | ||
| ) | const |
bcast bool.
| void cmType::bcast | ( | const CmMod & | cm_mod, |
| double * | data | ||
| ) | const |
bcast double
| void cmType::bcast | ( | const CmMod & | cm_mod, |
| int * | data | ||
| ) | const |
bcast int
| void cmType::bcast | ( | const CmMod & | cm_mod, |
| std::string & | data | ||
| ) | const |
bcast char*
| void cmType::bcast | ( | const CmMod & | cm_mod, |
| std::vector< bool > & | data | ||
| ) | const |
bcast bool array
| void cmType::bcast | ( | const CmMod & | cm_mod, |
| Vector< double > & | data, | ||
| const std::string & | name = "" |
||
| ) | const |
bcast double Vector
| decltype(MPI_COMM_WORLD) cmType::com | ( | ) | const |
Returns commu handle.
| 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
| 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
| void cmType::gather | ( | const CmMod & | cm_mod, |
| const Vector< double > & | send_data, | ||
| Vector< double > & | recv_data, | ||
| int | root | ||
| ) | const |
gather double Vector
| void cmType::gather | ( | const CmMod & | cm_mod, |
| const Vector< int > & | send_data, | ||
| Vector< int > & | recv_data, | ||
| int | root | ||
| ) | const |
gather int Vector
| 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
| 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
| 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
| 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
| void cmType::scatter | ( | const CmMod & | cm_mod, |
| const Vector< double > & | send_data, | ||
| Vector< double > & | recv_data, | ||
| int | root | ||
| ) | const |
scatter double Vector
| void cmType::scatter | ( | const CmMod & | cm_mod, |
| const Vector< int > & | send_data, | ||
| Vector< int > & | recv_data, | ||
| int | root | ||
| ) | const |
scatter int Vector
| 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
| 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