tem_comm_env_module Module

This module provides basic information on the parallel environment


Uses


Derived Types

type, public ::  tem_comm_env_type

Information about parallel runs

Components

Type Visibility Attributes Name Initial
integer, public :: comm_size

size of MPI communicator

integer, public :: rank

MPI rank

integer, public :: root

MPI root rank

integer, public :: comm

MPI communicator

integer, public :: nThreads

Maximal Number of OpenMP threads

logical, public :: isRoot

Whether this process is the root


Subroutines

public subroutine tem_comm_env_init(proc, comm)

Initialize the environment. This routine is called by tem_start which should be the very first action in a program.

Arguments

Type IntentOptional Attributes Name
type(tem_comm_env_type) :: proc

The process communicator type

integer, intent(in), optional :: comm

mpi communicator if it is predefined as in apesmate

public subroutine tem_comm_env_init_empty(proc)

Initialize a debug environment for just one process without envoking MPI

Arguments

Type IntentOptional Attributes Name
type(tem_comm_env_type) :: proc

The process communicator type

public subroutine tem_comm_env_fin(proc)

Finalize the environment. This routine is called by tem_finalize which should be the very last action in a program.

Arguments

Type IntentOptional Attributes Name
type(tem_comm_env_type) :: proc

The process communicator type