Skip to content

Commit 0513a9b

Browse files
committed
use extern omp_number var
1 parent 3af8129 commit 0513a9b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/module_io/print_info.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include "module_base/global_variable.h"
44
#include "module_parameter/parameter.h"
5+
#include "module_parameter/parallel_global.h"
56

67
namespace ModuleIO
78
{
@@ -71,6 +72,7 @@ void setup_parameters(UnitCell& ucell, K_Vectors& kv)
7172
std::cout << " " << std::setw(8) << "SPIN"
7273
<< std::setw(16) << "KPOINTS"
7374
<< std::setw(12) << "PROCESSORS";
75+
<< std::setw(16) << "THREADS_PER_PROC";
7476

7577
const bool orbinfo = (PARAM.inp.basis_type=="lcao" || PARAM.inp.basis_type=="lcao_in_pw"
7678
|| (PARAM.inp.basis_type=="pw" && PARAM.inp.init_wfc.substr(0, 3) == "nao"));
@@ -88,7 +90,8 @@ void setup_parameters(UnitCell& ucell, K_Vectors& kv)
8890
std::cout << std::setw(16) << kv.get_nkstot();
8991
}
9092

91-
std::cout << std::setw(12) << GlobalV::NPROC;
93+
std::cout << std::setw(12) << GlobalV::NPROC
94+
<< std::setw(16) << Parallel_Global::omp_number;;
9295
if (orbinfo) { std::cout << std::setw(12) << PARAM.globalv.nlocal; }
9396

9497
std::cout << std::endl;

0 commit comments

Comments
 (0)