envs Namespace Reference
|
LibRPA
|
Functions | |
| void | initialize_io (bool redirect_stdout_in=false, const char *filename="LibRPA_output.txt") |
| Initialize the IO environment of LibRPA. More... | |
| bool | is_io_initialized () |
| Check the IO environment of LibRPA is correctly initialized. | |
| void | finalize_io () |
| Finalize the IO environment of LibRPA. | |
| void | initialize_mpi (const MPI_Comm &mpi_comm_global_in) |
| Initialize the MPI environment of LibRPA. More... | |
| bool | is_mpi_initialized () |
| Check whether the MPI environment of LibRPA is correctly initialized. | |
| void | finalize_mpi () |
| Finalize the MPI environment of LibRPA. | |
Variables | |
| const char * | source_dir = get_dirname(__FILE__) |
| The path of the source code directory. | |
| std::ofstream | ofs |
| std::ofstream | ofs_myid |
| File output stream handler of each process. | |
| bool | redirect_stdout = false |
| Control whether to redirect stdout (cout, fmt print) to file. | |
| FILE * | pfile_redirect |
| File stream used by fprintf when stdout is redirected. | |
| int | myid_global = 0 |
| Rank of process in the global communciator. | |
| int | size_global = 1 |
| Number of processes in the global communciator. | |
| MPI_Comm | mpi_comm_global |
| Global communicator. | |
| LIBRPA::MPI_COMM_handler | mpi_comm_global_h |
| Handler of the global communicator. | |
| LIBRPA::BLACS_CTXT_handler | blacs_ctxt_global_h |
| Handler of the global BLACS context. | |
| std::string | procname = "not-init" |
| Name of process. | |
Detailed Description
Facilities regarding computation envrionment
Function Documentation
◆ initialize_io()
| void LIBRPA::envs::initialize_io | ( | bool | redirect_stdout_in = false, |
| const char * | filename = "LibRPA_output.txt" |
||
| ) |
Initialize the IO environment of LibRPA.
- Parameters
-
[in] redirect_stdout_in flag to control to redirect stdout to file, useful when separating LibRPA output from the main program @pram [in] filename name of file to redirect stdout
Here is the call graph for this function:
Here is the caller graph for this function:
◆ initialize_mpi()
| void LIBRPA::envs::initialize_mpi | ( | const MPI_Comm & | mpi_comm_global_in | ) |
Initialize the MPI environment of LibRPA.
- Parameters
-
[in] mpi_comm_global_in Global MPI communicator
Here is the caller graph for this function:
Generated by