MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
mpiunitcachemodule::mpiunitcachetype Type Reference
Collaboration diagram for mpiunitcachemodule::mpiunitcachetype:
Collaboration graph

Public Member Functions

procedure init (this, nr_stages, nr_msg_types)
 Initialize the unit cache.
procedure get_cached (this, rank, stage, msg_id)
 Get the cached mpi type for this rank and.
procedure cache (this, rank, stage, msg_id, mpi_type)
 Cache the mpi datatype for this particular rank and stage. The datatype should be committed.
procedure clear (this)
 Clear the cache: free MPI types.
procedure destroy (this)
 Destroy unit cache.

Private Member Functions

procedure, private is_rank_cached (this, rank)
procedure, private add_rank_cache (this, rank)
procedure, private get_rank_index (this, rank)
 returns -1 when not present
procedure, private get_msg_index (this, rank, stage, msg_id)
 returns -1 when not present

Private Attributes

type(stlvecint), private cached_ranks
type(stlvecint), private cached_messages
integer(i4b), private nr_stages
integer(i4b), private nr_msg_types

Detailed Description

Definition at line 13 of file MpiUnitCache.f90.

Member Function/Subroutine Documentation

◆ add_rank_cache()

procedure, private mpiunitcachemodule::mpiunitcachetype::add_rank_cache ( class(mpiunitcachetype) this,
integer(i4b) rank )
private

Definition at line 27 of file MpiUnitCache.f90.

◆ cache()

procedure mpiunitcachemodule::mpiunitcachetype::cache ( class(mpiunitcachetype) this,
integer(i4b) rank,
integer(i4b) stage,
integer(i4b) msg_id,
integer mpi_type )

Definition at line 22 of file MpiUnitCache.f90.

◆ clear()

procedure mpiunitcachemodule::mpiunitcachetype::clear ( class(mpiunitcachetype) this)

Definition at line 23 of file MpiUnitCache.f90.

◆ destroy()

procedure mpiunitcachemodule::mpiunitcachetype::destroy ( class(mpiunitcachetype) this)

Definition at line 24 of file MpiUnitCache.f90.

◆ get_cached()

procedure mpiunitcachemodule::mpiunitcachetype::get_cached ( class(mpiunitcachetype) this,
integer(i4b) rank,
integer(i4b) stage,
integer(i4b) msg_id )

Definition at line 21 of file MpiUnitCache.f90.

◆ get_msg_index()

procedure, private mpiunitcachemodule::mpiunitcachetype::get_msg_index ( class(mpiunitcachetype) this,
integer(i4b) rank,
integer(i4b) stage,
integer(i4b) msg_id )
private

Definition at line 29 of file MpiUnitCache.f90.

◆ get_rank_index()

procedure, private mpiunitcachemodule::mpiunitcachetype::get_rank_index ( class(mpiunitcachetype) this,
integer(i4b) rank )
private

Definition at line 28 of file MpiUnitCache.f90.

◆ init()

procedure mpiunitcachemodule::mpiunitcachetype::init ( class(mpiunitcachetype) this,
integer(i4b) nr_stages,
integer(i4b) nr_msg_types )
Parameters
nr_stagesnumber of (simulation) stages
nr_msg_typesnumber of message types to be cached during a stage

Definition at line 20 of file MpiUnitCache.f90.

◆ is_rank_cached()

procedure, private mpiunitcachemodule::mpiunitcachetype::is_rank_cached ( class(mpiunitcachetype) this,
integer(i4b) rank )
private

Definition at line 26 of file MpiUnitCache.f90.

Member Data Documentation

◆ cached_messages

type(stlvecint), private mpiunitcachemodule::mpiunitcachetype::cached_messages
private

Definition at line 16 of file MpiUnitCache.f90.

16 type(STLVecInt), private :: cached_messages

◆ cached_ranks

type(stlvecint), private mpiunitcachemodule::mpiunitcachetype::cached_ranks
private

Definition at line 15 of file MpiUnitCache.f90.

15 type(STLVecInt), private :: cached_ranks

◆ nr_msg_types

integer(i4b), private mpiunitcachemodule::mpiunitcachetype::nr_msg_types
private

Definition at line 18 of file MpiUnitCache.f90.

18 integer(I4B), private :: nr_msg_types

◆ nr_stages

integer(i4b), private mpiunitcachemodule::mpiunitcachetype::nr_stages
private

Definition at line 17 of file MpiUnitCache.f90.

17 integer(I4B), private :: nr_stages

The documentation for this type was generated from the following file: