#include <scu_dir_arg.h>
Public Member Functions | |
| SCUDirArg () | |
| Default constructor. | |
| SCUDirArg (void *addr, SCUDir dir, SCUXR sendxr, int blklen, int numblk=1, int stride=1) | |
| Parameterized constructor. | |
| ~SCUDirArg () | |
| Destructor:. | |
| void | Init (void *addr, SCUDir dir, SCUXR sendxr, int blklen, int numblk=1, int stride=1) |
| Initialise (or re-initialise) the datatype. | |
| void * | Addr () |
| Get the base-address. | |
| void * | Addr (void *addr) |
| Set the base-address. | |
| int | Blklen () |
| Get the block-length. | |
| int | Blklen (int blklen) |
| Set the block-length. | |
| int | Numblk () |
| Get the number of blocks. | |
| int | Numblk (int numblk) |
| Set the number of blocks. | |
| int | Stride () |
| Get the stride. | |
| int | Stride (int stride) |
| Set the stride. | |
| void | Reload (void *addr, int blklen, int numblk, int stride) |
| Reset the data structure parameters parameters. | |
| MPI_Datatype | Datatype (void) |
| Get the MPI Datatype created by this SCUDirArg. | |
| SCUDir | CommDir (void) |
| Get the direction. | |
| SCUXR | CommType (void) |
| Get the send/receive flag of this SCUDirArg. | |
| void | SetDataSize (int mpi_datasize) |
| Change the size of the fundamental data element. | |
The SCUDirArg class is part of the MPI communications layer. It describes the data to be communicated. It is assumed to be of a regularly strided form, so it is described in terms of its base address, the number of blocks its block length and the stride between each block. The latter two are in units of the actual numbers (not bytes).
Also described here is whether this data should be sent or received and the direction in which the data is to communicated.
At present this code is hardwired to assume that the data is always of type IFloat.
Definition at line 76 of file scu_dir_arg.h.
|
|
Default constructor. The default constructor initialises an instance of this class as follows
Definition at line 57 of file scu_dir_arg.C. |
|
||||||||||||||||||||||||||||
|
Parameterized constructor.
Definition at line 73 of file scu_dir_arg.C. |
|
|
Destructor:.
Definition at line 81 of file scu_dir_arg.C. |
|
|
Set the base-address.
Definition at line 145 of file scu_dir_arg.C. |
|
|
Get the base-address.
Definition at line 136 of file scu_dir_arg.C. Referenced by cps::stag_dirac(), and cps::stag_dirac_init_g(). |
|
|
Set the block-length.
Definition at line 167 of file scu_dir_arg.C. |
|
|
Get the block-length.
Definition at line 159 of file scu_dir_arg.C. |
|
|
Get the direction.
Definition at line 254 of file scu_dir_arg.C. References cps::SCUDir. |
|
|
Get the send/receive flag of this SCUDirArg.
Definition at line 263 of file scu_dir_arg.C. References cps::SCUXR. |
|
|
Get the MPI Datatype created by this SCUDirArg.
Definition at line 245 of file scu_dir_arg.C. |
|
||||||||||||||||||||||||||||
|
Initialise (or re-initialise) the datatype.
Definition at line 115 of file scu_dir_arg.C. Referenced by cps::qloadsave_pump_data(), and SCUDirArg(). |
|
|
Set the number of blocks.
Definition at line 189 of file scu_dir_arg.C. |
|
|
Get the number of blocks.
Definition at line 181 of file scu_dir_arg.C. |
|
||||||||||||||||||||
|
Reset the data structure parameters parameters.
Definition at line 230 of file scu_dir_arg.C. |
|
|
Change the size of the fundamental data element. If there is an mpi datatype defined for this class, it is redefined to use the new data size.
Change the size (in bytes) of the fundamental data element: If there is an mpi datatype defined for this class, redefine it to use the new data size: Definition at line 274 of file scu_dir_arg.C. |
|
|
Set the stride.
Definition at line 211 of file scu_dir_arg.C. |
|
|
Get the stride.
Definition at line 203 of file scu_dir_arg.C. |
1.3.9.1