![]() |
(git:b77b4be)
|
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 | |
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 | |
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) | |
subroutine, public | stop_whole_group (para_env, worker_info, tmc_params) |
send stop command to all group participants | |
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 |
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...
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
para_env | defines the mpi communicator |
Definition at line 84 of file tmc_messages.F.
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
msg_type | defines the message types, see message tags definition |
send_recv | 1= send, 0= receive |
dest | defines the target or source of message (-1=braodcast, 0= master, 1... working group) |
para_env | defines the mpi communicator |
tmc_params | stuct with parameters (global settings) |
elem | a subtree element from which info are readed or written in |
elem_array | ... |
list_elem | ... |
result_count | ... |
wait_for_message | ... |
success | ... |
Definition at line 113 of file tmc_messages.F.
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)
atoms | ... |
source | ... |
para_env | the communicator environment |
Definition at line 1561 of file tmc_messages.F.
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
para_env | ... |
worker_info | ... |
tmc_params | ... |
param
Definition at line 1598 of file tmc_messages.F.
logical, parameter, public tmc_messages::send_msg = .TRUE. |
Definition at line 49 of file tmc_messages.F.
logical, parameter, public tmc_messages::recv_msg = .FALSE. |
Definition at line 50 of file tmc_messages.F.
integer, parameter, public tmc_messages::master_comm_id = 0 |
Definition at line 63 of file tmc_messages.F.
integer, parameter, public tmc_messages::bcast_group = -1 |
Definition at line 64 of file tmc_messages.F.