parallel_m Module



Variables

Type Visibility Attributes Name Initial
integer, public :: mpi_comm_world = 0
integer, public, parameter :: mpi_info_null = 0
integer, public, parameter :: mpi_comm_null = 0
integer, public :: myid
integer, public :: mygpu_dev = 0
integer, public :: ncpu
integer, public :: n_nodes(1) = 1
integer, public :: n_IO_nodes = 1
integer, public :: n_MPI = 1
character(len=lchlen), public :: host_name
integer, public :: host_name_length
integer, public, parameter :: comm_default_value = mpi_comm_null
logical, public :: l_par_X_T
logical, public :: l_par_X_G
logical, public :: l_par_X_G_finite_q
logical, public :: l_par_DIP
logical, public :: l_par_BZINDX
logical, public :: l_par_SE
logical, public :: l_par_SX
logical, public :: l_par_RT
logical, public :: l_par_SC
logical, public :: l_par_NL
logical, public :: l_par_OSCLL
logical, public :: HEAD_QP_cpu = .TRUE.
logical, public :: HEAD_k_cpu = .TRUE.
logical, public :: HEAD_q_cpu = .TRUE.
logical, public :: HEAD_b_cpu = .TRUE.
integer, public :: n_groups = 0
integer, public :: nchains_group(2*MAX_N_GROUPS) = 0
integer, public :: ncpu_chain(MAX_N_OF_CHAINS) = 1
type(yMPI_comm), public, SAVE :: INTRA_CHAIN(MAX_N_OF_CHAINS)
type(yMPI_comm), public, SAVE :: INTER_CHAIN(MAX_N_OF_CHAINS)
type(yMPI_comm), public, SAVE :: CHILD_CHAIN(MAX_N_OF_CHAINS)
character(len=schlen), public :: CPU_string_save(n_CPU_str_max)
character(len=schlen), public :: ROLE_string_save(n_CPU_str_max)
type(CPU_stru), public, SAVE :: CPU_structure(n_CPU_str_max)
integer, public :: i_PAR_structure
integer, public :: PARALLEL_CPU_used(MAX_N_OF_CHAINS) = 1
character(len=4), public :: PARALLEL_CPU_role(MAX_N_OF_CHAINS) = " "
integer, public :: PARALLEL_n_structures_active = 0
logical, public :: PARALLEL_ENV_uses_default(n_CPU_str_max) = .false.
logical, public :: linear_algebra_is_parallel = .false.
character(len=schlen), public :: PARALLEL_default_mode = "balanced"
integer, public :: n_log_CPUs = 0
integer, public, parameter :: p_sum = 1
integer, public, parameter :: p_prod = 2
logical, public :: IO_write_default(max_n_of_cpus)
logical, public :: master_cpu
logical, public :: l_open_MP
type(PAR_scheme), public, SAVE :: PARs_PH_Q_ibz
type(PAR_scheme), public, SAVE :: PARs_PH_K_bz
type(PAR_scheme), public, SAVE :: PARs_PH_eh_bands
type(PARk_str), public, SAVE :: PAR_K_scheme
integer, public :: N_SND_RCV_operations
type(SND_RCV_geometry), public, allocatable :: SND_RCV_op(:)
integer, public :: n_WF_bands_to_load
integer, public, parameter :: n_parallel_X_types = 5
type(PP_indexes), public, SAVE :: PAR_IND_SLK
type(PP_indexes), public, SAVE :: PAR_IND_Q_ibz
type(PP_indexes), public, SAVE :: PAR_IND_Q_bz
type(PP_indexes), public, SAVE :: PAR_IND_Kk_ibz
type(PP_indexes), public, SAVE :: PAR_IND_Xk_ibz
type(PP_indexes), public, SAVE :: PAR_IND_Xk_bz
type(PP_indexes), public, SAVE :: PAR_IND_G_k
type(PP_indexes), public, SAVE :: PAR_IND_BZINDXk_ibz
type(PP_indexes), public, SAVE :: PAR_IND_BZINDXk_bz
type(PP_indexes), public, SAVE :: PAR_IND_DIPk_ibz
type(PP_indexes), public, SAVE :: PAR_IND_DIPk_bz
type(PP_indexes), public, SAVE :: PAR_IND_VAL_BANDS_DIP
type(PP_indexes), public, SAVE :: PAR_IND_CON_BANDS_DIP
type(PP_indexes), public, SAVE :: PAR_IND_OVLPk_ibz
type(PP_indexes), public, SAVE :: PAR_IND_VAL_BANDS_OVLP
type(PP_indexes), public, SAVE :: PAR_IND_CON_BANDS_OVLP
type(PP_indexes), public, SAVE :: PAR_IND_VAL_BANDS_X(n_parallel_X_types)
type(PP_indexes), public, SAVE :: PAR_IND_CON_BANDS_X(n_parallel_X_types)
type(PP_indexes), public, SAVE :: PAR_IND_QP
type(PP_indexes), public, SAVE :: PAR_IND_Plasma
type(PP_indexes), public, SAVE :: PAR_IND_G_b
type(PP_indexes), public, SAVE :: PAR_IND_B_mat
type(PP_indexes), public, SAVE :: PAR_IND_Bp_mat
type(PP_indexes), public, SAVE :: PAR_IND_B_mat_ordered
type(PP_indexes), public, SAVE :: PAR_IND_WF_b
type(PP_indexes), public, SAVE :: PAR_IND_WF_k
type(PP_indexes), public, SAVE :: PAR_IND_WF_b_and_k
type(PP_indexes), public, SAVE :: PAR_IND_WF_linear
type(PP_indexes), public, SAVE :: PAR_IND_RL
type(PP_indexes), public, allocatable, SAVE :: PAR_IND_eh(:)
type(PP_indexes), public, SAVE :: PAR_IND_T_groups
type(PP_indexes), public, SAVE :: PAR_IND_T_Haydock
type(PP_indexes), public, SAVE :: PAR_IND_T_ordered
type(PP_indexes), public, SAVE :: PAR_IND_freqs
integer, public :: PAR_IND_QP_ID
integer, public :: PAR_IND_PLASMA_ID
integer, public :: PAR_IND_G_b_ID
integer, public :: PAR_IND_WF_b_ID
integer, public :: PAR_IND_WF_k_ID
integer, public :: PAR_IND_Q_ibz_ID
integer, public :: PAR_IND_Q_bz_ID
integer, public :: PAR_IND_Kk_ibz_ID
integer, public :: PAR_IND_Xk_ibz_ID
integer, public :: PAR_IND_Xk_bz_ID
integer, public :: PAR_IND_G_k_ID
integer, public :: PAR_IND_BZINDXk_bz_ID
integer, public :: PAR_IND_BZINDXk_ibz_ID
integer, public :: PAR_IND_DIPk_bz_ID
integer, public :: PAR_IND_DIPk_ibz_ID
integer, public :: PAR_IND_VAL_BANDS_DIP_ID
integer, public :: PAR_IND_CON_BANDS_DIP_ID
integer, public :: PAR_IND_OVLPk_ibz_ID
integer, public :: PAR_IND_VAL_BANDS_OVLP_ID
integer, public :: PAR_IND_CON_BANDS_OVLP_ID
integer, public :: PAR_IND_VAL_BANDS_X_ID(n_parallel_X_types)
integer, public :: PAR_IND_CON_BANDS_X_ID(n_parallel_X_types)
integer, public :: PAR_IND_eh_ID
integer, public :: PAR_IND_RL_ID
integer, public :: PAR_IND_freqs_ID
integer, public :: PAR_IND_FREQ_ID
type(yMPI_comm), public, SAVE :: PAR_COM_WORLD
type(yMPI_comm), public, SAVE :: PAR_COM_NULL
type(yMPI_comm), public, SAVE :: PAR_COM_HOST
type(yMPI_comm), public, SAVE :: PAR_COM_SLK
type(yMPI_comm), public, SAVE :: PAR_COM_SLK_INDEX_global
type(yMPI_comm), public, SAVE :: PAR_COM_SLK_INDEX_local
type(yMPI_comm), public, SAVE :: PAR_COM_RL_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_RL_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_QP_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_QP_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_PLASMA_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_G_b_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_G_b_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_G_b_INDEX_global
type(yMPI_comm), public, SAVE :: PAR_COM_WF_k_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_WF_k_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_WF_b_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_Q_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_Q_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_Xk_ibz_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_Xk_ibz_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_Xk_bz_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_Xk_bz_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_BZINDXk_ibz_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_BZINDXk_ibz_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_BZINDXk_bz_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_DIPk_ibz_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_DIPk_ibz_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_DIPk_bz_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_DIPk_bz_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_VAL_INDEX_DIP
type(yMPI_comm), public, SAVE :: PAR_COM_CON_INDEX_DIP
type(yMPI_comm), public, SAVE :: PAR_COM_VAL_INDEX_OVLP
type(yMPI_comm), public, SAVE :: PAR_COM_CON_INDEX_OVLP
type(yMPI_comm), public, SAVE :: PAR_COM_VAL_INDEX_X(n_parallel_X_types)
type(yMPI_comm), public, SAVE :: PAR_COM_CON_INDEX_X(n_parallel_X_types)
type(yMPI_comm), public, SAVE :: PAR_COM_X_WORLD_RL_resolved
type(yMPI_comm), public, SAVE :: PAR_COM_X_WORLD
type(yMPI_comm), public, SAVE :: PAR_COM_eh_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_eh_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_T_INDEX
type(yMPI_comm), public, allocatable, SAVE :: PAR_COM_T_Haydock(:)
type(yMPI_comm), public, SAVE :: PAR_COM_density
type(yMPI_comm), public, SAVE :: PAR_COM_freqs
type(yMPI_comm), public, SAVE :: PAR_COM_freqs_A2A
type(yMPI_comm), public, SAVE :: PAR_COM_freqs_INDEX
type(yMPI_comm), public, SAVE :: PAR_COM_SE_WORLD_RL_resolved
type(yMPI_comm), public, SAVE :: PAR_COM_SE_WORLD
integer, public :: PAR_K_range = 0
integer, public :: PAR_EH_range = 0
integer, public :: PAR_QP_range = 0
integer, public :: PAR_Q_ibz_range(2) = 0
integer, public :: PAR_Q_bz_range(2) = 0
integer, public :: PAR_Dip_ib(2) = 0
integer, public :: PAR_Dip_ib_lim(2) = 0
integer, public :: PAR_X_ib(2) = 0
integer, public :: PAR_X_iq(2) = 0
integer, public :: PAR_n_bands(2) = 0
integer, public :: PAR_n_c_bands(2) = 0
integer, public :: PAR_n_v_bands(2) = 0
integer, public :: PAR_n_G_vectors = 0
integer, public :: PAR_G_k_range(2) = 0
integer, public :: PAR_nRL
integer, public, allocatable :: PAR_RL_index(:)
integer, public :: PAR_nPlasma
integer, public, allocatable :: PAR_PLASMA_index(:)
integer, public :: PAR_nQP
integer, public, allocatable :: PAR_QP_index(:)
integer, public :: PAR_nQ_ibz
integer, public, allocatable :: PAR_Q_ibz_index(:)
integer, public :: PAR_nQ_bz
integer, public, allocatable :: PAR_Q_bz_index(:)
integer, public :: PAR_Kk_nibz
integer, public :: PAR_Xk_nibz
integer, public, allocatable :: PAR_Xk_ibz_index(:)
integer, public :: PAR_Xk_nbz
integer, public, allocatable :: PAR_Xk_bz_index(:)
integer, public :: PAR_BZINDXk_nibz
integer, public, allocatable :: PAR_BZINDXk_ibz_index(:)
integer, public :: PAR_BZINDXk_nbz
integer, public, allocatable :: PAR_BZINDXk_bz_index(:)
integer, public :: PAR_DIPk_nibz
integer, public, allocatable :: PAR_DIPk_ibz_index(:)
integer, public :: PAR_DIPk_nbz
integer, public, allocatable :: PAR_DIPk_bz_index(:)
integer, public :: PAR_BS_nT_col_grps
integer, public, allocatable :: PAR_BS_T_grps_index(:)
integer, public :: PAR_nG_bands
integer, public, allocatable :: PAR_G_bands_index(:)
integer, public :: PAR_n_freqs
integer, public, allocatable :: PAR_FREQS_index(:)
integer, public :: PAR_n_Bp_mat_elements

Derived Types

type, public ::  yMPI_comm

Components

Type Visibility Attributes Name Initial
integer, public :: COMM
integer, public :: CPU_id
integer, public :: my_CHAIN
integer, public :: chain_order
integer, public :: n_CPU

type, public ::  CPU_stru

Components

Type Visibility Attributes Name Initial
integer, public :: N_chains = 1
integer, public :: CPU(MAX_N_OF_CHAINS) = 1
character(len=4), public :: ROLE(MAX_N_OF_CHAINS) = " "
character(len=schlen), public :: CPU_string = " "
character(len=schlen), public :: ROLE_string = " "
character(len=schlen), public :: Long_Description = " "
character(len=schlen), public :: Short_Description = " "
integer, public :: nCPU_lin_algebra_INV = -1
integer, public :: nCPU_lin_algebra_DIAGO = -1

type, public ::  PP_indexes

Components

Type Visibility Attributes Name Initial
logical, public, allocatable :: element_1D(:)
logical, public, allocatable :: element_2D(:,:)
integer, public, allocatable :: n_of_elements(:)
integer, public, allocatable :: weight_1D(:)
integer, public, allocatable :: first_of_1D(:)
integer, public, allocatable :: last_of_1D(:)

type, public ::  PAR_scheme

Components

Type Visibility Attributes Name Initial
type(yMPI_comm), public :: COMM_i
type(yMPI_comm), public :: COMM_a2a
type(PP_indexes), public :: IND
integer, public :: ID
integer, public :: D(2)
integer, public :: N_ser
integer, public :: N_par
logical, public :: consecutive
integer, public, allocatable :: table(:)

type, public ::  PARk_str

Components

Type Visibility Attributes Name Initial
type(yMPI_comm), public :: COM_ibz_INDEX
type(yMPI_comm), public :: COM_ibz_A2A
type(PP_indexes), public :: IND_ibz
type(PP_indexes), public :: IND_bz
integer, public, allocatable :: ibz_index(:)
integer, public, allocatable :: bz_index(:)
integer, public, allocatable :: bz_id(:)
integer, public :: nibz
integer, public :: nbz
integer, public :: comm_world

type, public ::  SND_RCV_geometry

Components

Type Visibility Attributes Name Initial
integer, public, allocatable :: SND_to_id(:)
integer, public, allocatable :: RCV_from_id(:)

Functions

public function i_INTER_CHAIN(N_father, N_child)

Arguments

Type IntentOptional Attributes Name
integer :: N_father
integer :: N_child

Return Value integer

public function PARALLEL_message(i_s)

Arguments

Type IntentOptional Attributes Name
integer :: i_s

Return Value character(len=lchlen)


Subroutines

public subroutine PAR_build_index(PAR_ind, N_elements, V_ind, n_V_ind)

Arguments

Type IntentOptional Attributes Name
type(PP_indexes), intent(in) :: PAR_ind
integer, intent(in) :: N_elements
integer, intent(out) :: V_ind(N_elements)
integer, intent(out) :: n_V_ind

public subroutine CREATE_the_COMM(WORLD, COMM, ID)

Arguments

Type IntentOptional Attributes Name
integer :: WORLD
type(yMPI_comm) :: COMM
integer :: ID

public subroutine CPU_and_ROLE_strings_save()

Arguments

None

public subroutine CPU_and_ROLE_strings_restore()

Arguments

None

public subroutine CPU_str_reset()

Arguments

None

public subroutine COMM_reset(COMM)

Arguments

Type IntentOptional Attributes Name
type(yMPI_comm) :: COMM

public subroutine PAR_scheme_reset(PARs)

Arguments

Type IntentOptional Attributes Name
type(PAR_scheme) :: PARs

public subroutine COMM_copy(COMM_in, COMM_out)

Arguments

Type IntentOptional Attributes Name
type(yMPI_comm) :: COMM_in
type(yMPI_comm) :: COMM_out

public subroutine PAR_INDEX_copy(IND_in, IND_out)

Arguments

Type IntentOptional Attributes Name
type(PP_indexes) :: IND_in
type(PP_indexes) :: IND_out

public subroutine PP_indexes_reset(IND_out)

Arguments

Type IntentOptional Attributes Name
type(PP_indexes) :: IND_out

public subroutine CREATE_hosts_COMM()

Arguments

None

public subroutine par_distribute_set(nsets, nsets_this_cpu, nset_shift, comm)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nsets
integer, intent(out) :: nsets_this_cpu
integer, intent(out) :: nset_shift
integer, optional :: comm


📚 Documentation Pages
⏱️ Real-Time
🔗 Code API