Facility to cache the constructed MPI datatypes. This will avoid having to construct them over and over again for the communication inside the timestep loop. This class deals with separate caches for different units (solutions or global) and for different types of.
More...
|
| procedure | init (this) |
| procedure | get (this, unit, rank, stage, msg_id) |
| procedure | put (this, unit, rank, stage, msg_id, mpi_type) |
| | Put the mpi datatype for this particular unit, rank, and stage in cache. The datatype should be.
|
| procedure | clear (this) |
| procedure | destroy (this) |
Definition at line 24 of file MpiMessageCache.f90.
◆ clear()
◆ destroy()
| procedure mpimessagecachemodule::mpimessagecachetype::destroy |
( |
class(mpimessagecachetype) | this | ) |
|
◆ get()
| procedure mpimessagecachemodule::mpimessagecachetype::get |
( |
class(mpimessagecachetype) | this, |
|
|
integer(i4b) | unit, |
|
|
integer(i4b) | rank, |
|
|
integer(i4b) | stage, |
|
|
integer(i4b) | msg_id ) |
- Parameters
-
| this | the message cache |
| unit | the unit (solution or global) |
| rank | the rank of the MPI process to communicate with |
| stage | the simulation stage at which the message is sent |
| msg_id | the message type as an integer between 1 and NR_MSG_TYPES (see above for predefined values) |
- Returns
- the resulting mpi datatype
Definition at line 29 of file MpiMessageCache.f90.
◆ init()
◆ put()
| procedure mpimessagecachemodule::mpimessagecachetype::put |
( |
class(mpimessagecachetype) | this, |
|
|
integer(i4b) | unit, |
|
|
integer(i4b) | rank, |
|
|
integer(i4b) | stage, |
|
|
integer(i4b) | msg_id, |
|
|
integer | mpi_type ) |
- Parameters
-
| this | the message cache |
| unit | the unit (solution or global) |
| rank | the rank of the MPI process to communicate with |
| stage | the simulation stage at which the message is sent |
| msg_id | the message type as an integer between 1 and NR_MSG_TYPES (see above for predefined values) |
| mpi_type | the mpi datatype to cache |
Definition at line 30 of file MpiMessageCache.f90.
◆ cached_ids
| type(stlvecint) mpimessagecachemodule::mpimessagecachetype::cached_ids |
◆ unit_caches
| type(listtype) mpimessagecachemodule::mpimessagecachetype::unit_caches |
The documentation for this type was generated from the following file: