(git:6a2e663)
tmc_messages Module Reference

set up the different message for different tasks A TMC message consists of 3 parts (messages) 1: first a message with task type (STATUS) and SIZES of submessages 2: (if existing) a message with INTEGER values 3: (if existing) a message with REAL values submessages 2 and 3 include relevant data, e.g. positions, box sizes... More...

Functions/Subroutines

logical function, public check_if_group_master (para_env)
 checks if the core is the group master More...
 
subroutine, public tmc_message (msg_type, send_recv, dest, para_env, tmc_params, elem, elem_array, list_elem, result_count, wait_for_message, success)
 tmc message handling, packing messages with integer and real data type. Send first info message with task type and message sizes and then the int and real messages. The same for receiving More...
 
subroutine, public communicate_atom_types (atoms, source, para_env)
 routines send atom names to the global master (using broadcast in a specialized group consisting of the master and the first energy worker master) More...
 
subroutine, public stop_whole_group (para_env, worker_info, tmc_params)
 send stop command to all group participants More...
 

Variables

logical, parameter, public send_msg = .TRUE.
 
logical, parameter, public recv_msg = .FALSE.
 
integer, parameter, public master_comm_id = 0
 
integer, parameter, public bcast_group = -1
 

Detailed Description

set up the different message for different tasks A TMC message consists of 3 parts (messages) 1: first a message with task type (STATUS) and SIZES of submessages 2: (if existing) a message with INTEGER values 3: (if existing) a message with REAL values submessages 2 and 3 include relevant data, e.g. positions, box sizes...

History
11.2012 created [Mandes Schoenherr]
Author
Mandes

Function/Subroutine Documentation

◆ check_if_group_master()

logical function, public tmc_messages::check_if_group_master ( type(mp_para_env_type), pointer  para_env)

checks if the core is the group master

Parameters
para_envdefines the mpi communicator
Returns
return value, logical
Author
Mandes 01.2013

Definition at line 84 of file tmc_messages.F.

Here is the caller graph for this function:

◆ tmc_message()

subroutine, public tmc_messages::tmc_message ( integer  msg_type,
logical  send_recv,
integer  dest,
type(mp_para_env_type), pointer  para_env,
type(tmc_param_type), pointer  tmc_params,
type(tree_type), optional, pointer  elem,
type(elem_array_type), dimension(:), optional  elem_array,
type(elem_list_type), optional, pointer  list_elem,
integer, dimension(:), optional, pointer  result_count,
logical, optional  wait_for_message,
logical, optional  success 
)

tmc message handling, packing messages with integer and real data type. Send first info message with task type and message sizes and then the int and real messages. The same for receiving

Parameters
msg_typedefines the message types, see message tags definition
send_recv1= send, 0= receive
destdefines the target or source of message (-1=braodcast, 0= master, 1... working group)
para_envdefines the mpi communicator
tmc_paramsstuct with parameters (global settings)
elema subtree element from which info are readed or written in
elem_array...
list_elem...
result_count...
wait_for_message...
success...
Author
Mandes 12.2012

Definition at line 113 of file tmc_messages.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ communicate_atom_types()

subroutine, public tmc_messages::communicate_atom_types ( type(tmc_atom_type), dimension(:), pointer  atoms,
integer  source,
type(mp_para_env_type), pointer  para_env 
)

routines send atom names to the global master (using broadcast in a specialized group consisting of the master and the first energy worker master)

Parameters
atoms...
source...
para_envthe communicator environment
Author
Mandes 12.2012

Definition at line 1561 of file tmc_messages.F.

Here is the caller graph for this function:

◆ stop_whole_group()

subroutine, public tmc_messages::stop_whole_group ( type(mp_para_env_type), pointer  para_env,
type(elem_array_type), dimension(:), optional, pointer  worker_info,
type(tmc_param_type), pointer  tmc_params 
)

send stop command to all group participants

Parameters
para_env...
worker_info...
tmc_params...

Definition at line 1598 of file tmc_messages.F.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ send_msg

logical, parameter, public tmc_messages::send_msg = .TRUE.

Definition at line 49 of file tmc_messages.F.

◆ recv_msg

logical, parameter, public tmc_messages::recv_msg = .FALSE.

Definition at line 50 of file tmc_messages.F.

◆ master_comm_id

integer, parameter, public tmc_messages::master_comm_id = 0

Definition at line 63 of file tmc_messages.F.

◆ bcast_group

integer, parameter, public tmc_messages::bcast_group = -1

Definition at line 64 of file tmc_messages.F.