FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
abacus-develop/source/source_base/global_variable.cpp at develop · maki49/abacus-develop · GitHub
maki49
/
abacus-develop
Public
forked from
deepmodeling/abacus-develop
Notifications
You must be signed in to change notification settings
Fork
1
Star
3
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.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (39 loc) · 1.39 KB
Breadcrumbs
abacus-develop
/
source
/
source_base
/
global_variable.cpp
Copy path
File metadata and controls
43 lines (39 loc) · 1.39 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
//
==========================================================
//
AUTHOR : mohan
//
DATE : 2008-11-07
//
==========================================================
#
include
"
global_variable.h
"
#
include
<
fstream
>
#
include
<
iomanip
>
#
include
<
iostream
>
#
include
<
sstream
>
#
include
<
string
>
#
include
<
vector
>
namespace
GlobalV
{
//
----------------------------------------------------------
//
EXPLAIN : Parallel information
//
----------------------------------------------------------
int
NPROC
=
1
;
//
/< global number of process
int
KPAR
=
1
;
//
/< global number of pools
int
MY_RANK
=
0
;
//
/< global index of process
int
MY_POOL
=
0
;
//
/< global index of pool (count in pool)
int
MY_BNDGROUP
=
0
;
int
NPROC_IN_POOL
=
1
;
//
/< local number of process in a pool
int
NPROC_IN_BNDGROUP
=
1
;
int
RANK_IN_POOL
=
0
;
//
/< global index of pool (count in process), my_rank in each pool
int
RANK_IN_BPGROUP
=
0
;
int
DRANK
= -
1
;
//
/< mohan add 2012-01-13, must be -1, so we can recognize who
//
/< didn't in DIAG_WORLD
int
DSIZE
=
KPAR
;
int
DCOLOR
= -
1
;
int
GRANK
=
MY_RANK
;
int
GSIZE
=
DSIZE
;
//
----------------------------------------------------------
//
EXPLAIN : ofstream for output
//
----------------------------------------------------------
std::ofstream ofs_running;
std::ofstream ofs_warning;
std::ofstream ofs_info;
//
output math lib info
std::ofstream ofs_device;
//
output device info
}
//
namespace GlobalV
Back
|
FazBrowse Home
|
New Git URL