Skip to content

Commit 3af8129

Browse files
committed
leave a space for use GlobalV::THREAD_PRE_PROC
1 parent 50a204f commit 3af8129

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

source/module_base/global_variable.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace GlobalV
1717
//----------------------------------------------------------
1818

1919
int NPROC = 1; ///< global number of process
20+
int THREAD_PER_PROC = 1; ///< global number of thread per process
2021
int KPAR = 1; ///< global number of pools
2122
int KPAR_LCAO = 1; ///< global number of pools for LCAO diagonalization only
2223
int MY_RANK = 0; ///< global index of process

source/module_base/global_variable.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace GlobalV
1717
// EXPLAIN : Parallel information
1818
// GLOBAL VARIABLES :
1919
// NAME : NPROC( global number of process )
20+
// NAME : THREAD_PER_PROC ( global number of threads per process )
2021
// NAME : KPAR( global number of pools )
2122
// NAME : MY_RANK( global index of process )
2223
// NAME : MY_POOL( global index of pool (count in pool))
@@ -31,6 +32,7 @@ namespace GlobalV
3132
// NAME : KPAR_LCAO ( global number of pools for LCAO diagonalization only)
3233
//========================================================================
3334
extern int NPROC;
35+
extern int THREAD_PER_PROC;
3436
extern int KPAR;
3537
extern int MY_RANK;
3638
extern int MY_POOL;

0 commit comments

Comments
 (0)