FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
abacus-develop/source/source_base/global_variable.h at develop · pplab/abacus-develop · GitHub
pplab
/
abacus-develop
Public
forked from
deepmodeling/abacus-develop
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
abacus-develop
/
source
/
source_base
/
global_variable.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
56 lines (53 loc) · 1.79 KB
Breadcrumbs
abacus-develop
/
source
/
source_base
/
global_variable.h
Copy path
File metadata and controls
56 lines (53 loc) · 1.79 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
==========================================================
//
AUTHOR : mohan
//
DATE : 2008-11-07
//
==========================================================
#
ifndef
GLOBAL_VARIABLE_H
#
define
GLOBAL_VARIABLE_H
#
include
<
fstream
>
#
include
<
iomanip
>
#
include
<
iostream
>
#
include
<
string
>
#
include
<
vector
>
namespace
GlobalV
{
//
========================================================================
//
EXPLAIN : Parallel information
//
GLOBAL VARIABLES :
//
NAME : NPROC( global number of process )
//
NAME : KPAR( global number of pools )
//
NAME : MY_RANK( global index of process )
//
NAME : MY_POOL( global index of pool (count in pool))
//
NAME : NPROC_IN_POOL( local number of process in a pool.)
//
NAME : RANK_IN_POOL( global index of pool (count in process),
//
MY_RANK in each pool)
//
NAME : DRANK( index of diag world)
//
NAME : DSIZE( number of processors in diag world, only 1 DWORLD exist)
//
NAME : DCOLOR( color of each group)
//
NAME : GRANK( index of grid world)
//
NAME : GSIZE( number of processors in each grid world)
//
========================================================================
extern
int
NPROC
;
extern
int
KPAR
;
extern
int
MY_RANK
;
extern
int
MY_POOL
;
extern
int
MY_BNDGROUP
;
extern
int
NPROC_IN_POOL
;
extern
int
NPROC_IN_BNDGROUP
;
extern
int
RANK_IN_POOL
;
extern
int
RANK_IN_BPGROUP
;
extern
int
DRANK
;
extern
int
DSIZE
;
extern
int
DCOLOR
;
extern
int
GRANK
;
extern
int
GSIZE
;
//
==========================================================
//
NAME : ofs_running( contain information during runnnig)
//
NAME : ofs_warning( contain warning information, including error)
//
==========================================================
extern
std::ofstream ofs_running;
extern
std::ofstream ofs_warning;
extern
std::ofstream ofs_info;
extern
std::ofstream ofs_device;
}
//
namespace GlobalV
#
endif
Back
|
FazBrowse Home
|
New Git URL