![]() |
rebl-AMR
|
is a template wrapper around MPI functions for collective communicatios More...
#include <communicate.h>
Public Member Functions | |
| CommCollective (void *buf, uint size, uint root) | |
| CommCollective (void *buff, uint size) | |
| void | bcast () |
| void | Ibcast () |
| void | getTotalNumber (uint *offset, uint *myvalue, uint *totalvalue) |
| void | IgetTotalNumber (uint *offset, uint *myvalue, uint *totalvalue) |
| void | waitOnRequest () |
| ~CommCollective () | |
| template<> | |
| void | getTotalNumber (uint *offset, uint *myvalue, uint *totalvalue) |
| template<> | |
| void | IgetTotalNumber (uint *offset, uint *myvalue, uint *totalvalue) |
Private Attributes | |
| MpiCom | Com |
| Message | Msg |
is a template wrapper around MPI functions for collective communicatios
This class is specialized for collective communications and functions
| CommCollective< Type >::CommCollective | ( | void * | buf, |
| uint | size, | ||
| uint | root | ||
| ) |
constructor
| root | another constructor for Communicator class |
| CommCollective< Type >::CommCollective | ( | void * | buff, |
| uint | size | ||
| ) |
constructor specialized for root=comsize-1
| size | another constructor for Communicator class, this one sets the root as comsize-1 for hdf5 |
|
inline |
| void CommCollective< Type >::bcast | ( | ) |
blockin broadcast
| void CommCollective< Type >::getTotalNumber | ( | uint * | offset, |
| uint * | myvalue, | ||
| uint * | totalvalue | ||
| ) |
calculates the world population for a given variable
| void CommCollective< uint >::getTotalNumber | ( | uint * | offset, |
| uint * | myvalue, | ||
| uint * | totalvalue | ||
| ) |
< the largest offset belongs to the processor with highest rank, add this to its number of cubes will give us the total value
| void CommCollective< Type >::Ibcast | ( | ) |
non-blocking broadcast
I spoecialized this function since this is only needed for unsigned ints
| void CommCollective< Type >::IgetTotalNumber | ( | uint * | offset, |
| uint * | myvalue, | ||
| uint * | totalvalue | ||
| ) |
calculates the world population for a given variable in a non-blocking fashion
| void CommCollective< uint >::IgetTotalNumber | ( | uint * | offset, |
| uint * | myvalue, | ||
| uint * | totalvalue | ||
| ) |
< the largest offset belongs to the processor with highest rank, add this to its number of cubes will give us the total value
| void CommCollective< Type >::waitOnRequest | ( | ) |
|
private |
|
private |