envs_mpi.h Source File

LibRPA: envs_mpi.h Source File
LibRPA
envs_mpi.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include <string>
9 #include <mpi.h>
10 
11 #include "parallel_mpi.h"
12 
17 
18 namespace LIBRPA
19 {
20 
21 namespace envs
22 {
23 
25 extern MPI_Comm mpi_comm_global;
26 
29 
32 
34 extern int myid_global;
35 
37 extern int size_global;
38 
40 extern std::string procname;
41 
43 
46 void initialize_mpi(const MPI_Comm &mpi_comm_global_in);
47 
49 bool is_mpi_initialized();
50 
52 void finalize_mpi();
53 
54 } /* end of namespace envs */
55 
56 } /* end of namespace LIBRPA */
Definition: parallel_mpi.h:75
Definition: parallel_mpi.h:45
std::string procname
Name of process.
Definition: envs_mpi.cpp:21
int myid_global
Rank of process in the global communciator.
Definition: envs_mpi.cpp:11
void initialize_mpi(const MPI_Comm &mpi_comm_global_in)
Initialize the MPI environment of LibRPA.
Definition: envs_mpi.cpp:25
MPI_Comm mpi_comm_global
Global communicator.
Definition: envs_mpi.cpp:15
int size_global
Number of processes in the global communciator.
Definition: envs_mpi.cpp:13
LIBRPA::MPI_COMM_handler mpi_comm_global_h
Handler of the global communicator.
Definition: envs_mpi.cpp:17
void finalize_mpi()
Finalize the MPI environment of LibRPA.
Definition: envs_mpi.cpp:68
LIBRPA::BLACS_CTXT_handler blacs_ctxt_global_h
Handler of the global BLACS context.
Definition: envs_mpi.cpp:19
bool is_mpi_initialized()
Check whether the MPI environment of LibRPA is correctly initialized.
Definition: envs_mpi.cpp:63
Definition: analycont.cpp:14