|
PaCO++
0.05
|
#include <paco_mpi.h>


Public Member Functions | |
| int | paco_barrier () |
| int | paco_bcast (void *buf, int count, int root) |
| paco_mpi (void *group) | |
| int | paco_rank (int *rank) |
| virtual | ~paco_mpi () |
Protected Attributes | |
| MPI_Comm | my_group_id |
Definition at line 7 of file paco_mpi.h.
| paco_mpi::paco_mpi | ( | void * | group | ) |
Definition at line 5 of file paco_mpi.cc.
References my_group_id.
{
my_group_id = *((MPI_Comm*) group);
}
| paco_mpi::~paco_mpi | ( | ) | [virtual] |
Definition at line 10 of file paco_mpi.cc.
{}
| int paco_mpi::paco_barrier | ( | ) | [virtual] |
Implements paco_com.
Definition at line 20 of file paco_mpi.cc.
References my_group_id.
{
#ifdef DEBUG
cerr << __FUNCTION__ << endl;
#endif
return MPI_Barrier(my_group_id);
}
| int paco_mpi::paco_bcast | ( | void * | buf, |
| int | count, | ||
| int | root | ||
| ) | [virtual] |
Implements paco_com.
Definition at line 29 of file paco_mpi.cc.
References my_group_id.
{
#ifdef DEBUG
cerr << __FUNCTION__ << endl;
#endif
return MPI_Bcast(buf, count, MPI_CHAR, root, my_group_id);
}
| int paco_mpi::paco_rank | ( | int * | rank | ) | [virtual] |
Implements paco_com.
Definition at line 14 of file paco_mpi.cc.
References my_group_id.
{
return MPI_Comm_rank(my_group_id, rank);
}
MPI_Comm paco_mpi::my_group_id [protected] |
Definition at line 18 of file paco_mpi.h.
Referenced by paco_barrier(), paco_bcast(), paco_mpi(), and paco_rank().