ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
global_variable.h
Go to the documentation of this file.
1//==========================================================
2// AUTHOR : mohan
3// DATE : 2008-11-07
4//==========================================================
5#ifndef GLOBAL_VARIABLE_H
6#define GLOBAL_VARIABLE_H
7
8#include <fstream>
9#include <iomanip>
10#include <iostream>
11#include <string>
12#include <vector>
13
14namespace GlobalV
15{
16//========================================================================
17// EXPLAIN : Parallel information
18// GLOBAL VARIABLES :
19// NAME : NPROC( global number of process )
20// NAME : KPAR( global number of pools )
21// NAME : MY_RANK( global index of process )
22// NAME : MY_POOL( global index of pool (count in pool))
23// NAME : NPROC_IN_POOL( local number of process in a pool.)
24// NAME : RANK_IN_POOL( global index of pool (count in process),
25// MY_RANK in each pool)
26// NAME : DRANK( index of diag world)
27// NAME : DSIZE( number of processors in diag world, only 1 DWORLD exist)
28// NAME : DCOLOR( color of each group)
29// NAME : GRANK( index of grid world)
30// NAME : GSIZE( number of processors in each grid world)
31//========================================================================
32extern int NPROC;
33extern int KPAR;
34extern int MY_RANK;
35extern int MY_POOL;
36extern int MY_BNDGROUP;
37extern int NPROC_IN_POOL;
38extern int NPROC_IN_BNDGROUP;
39extern int RANK_IN_POOL;
40extern int RANK_IN_BPGROUP;
41extern int DRANK;
42extern int DSIZE;
43extern int DCOLOR;
44extern int GRANK;
45extern int GSIZE;
46
47//==========================================================
48// NAME : ofs_running( contain information during runnnig)
49// NAME : ofs_warning( contain warning information, including error)
50//==========================================================
51extern std::ofstream ofs_running;
52extern std::ofstream ofs_warning;
53extern std::ofstream ofs_info;
54extern std::ofstream ofs_device;
55} // namespace GlobalV
56#endif
Definition global_variable.cpp:14
std::ofstream ofs_device
Definition global_variable.cpp:41
int DCOLOR
Definition global_variable.cpp:31
int NPROC
global number of process
Definition global_variable.cpp:19
int DSIZE
Definition global_variable.cpp:30
int MY_RANK
global index of process
Definition global_variable.cpp:21
int MY_POOL
global index of pool (count in pool)
Definition global_variable.cpp:22
int RANK_IN_BPGROUP
Definition global_variable.cpp:27
int GRANK
Definition global_variable.cpp:32
int KPAR
global number of pools
Definition global_variable.cpp:20
std::ofstream ofs_info
Definition global_variable.cpp:40
int NPROC_IN_POOL
local number of process in a pool
Definition global_variable.cpp:24
std::ofstream ofs_running
Definition global_variable.cpp:38
std::ofstream ofs_warning
Definition global_variable.cpp:39
int MY_BNDGROUP
Definition global_variable.cpp:23
int DRANK
Definition global_variable.cpp:28
int RANK_IN_POOL
global index of pool (count in process), my_rank in each pool
Definition global_variable.cpp:26
int GSIZE
Definition global_variable.cpp:33
int NPROC_IN_BNDGROUP
Definition global_variable.cpp:25