mod_mpi_info Module

(in libkernel) the module to deal with mpi


Contents


Variables

TypeVisibility AttributesNameInitial
integer, public :: nproc =1

number of total cores

integer, public :: my_rank =0

rank of the current core

integer, public :: ierror

mpi error information


Subroutines

public subroutine set_output_log_TNSG(log, file)

func write_message will also print in the log file

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: log

the unit of the log file

character(len=*), intent(in) :: file

the path of the log file

public subroutine unset_output_log_TNSG()

func write_message will not print in the log file

Arguments

None

public subroutine write_message(message, advance)

write message in the core with rank = 0

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: message
character(len=*), intent(in), optional :: advance

the message to write, to trim

public subroutine dynamic_message(message)

write message in the core with rank = 0, keep replacing a line by a new message

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: message

the message to write, not to trim

public subroutine dynamic_message_end(message)

write message in the core with rank = 0, stop replacing a line by a new message

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: message

the message to write, not to trim