Skip to content

Commit 9e38d6f

Browse files
committed
bug fix and print modification
1 parent 449fedb commit 9e38d6f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/module_io/print_info.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
#include "module_base/global_variable.h"
44
#include "module_parameter/parameter.h"
5-
#include "module_parameter/parallel_global.h"
5+
#include "module_base/parallel_global.h"
6+
67

78
namespace ModuleIO
89
{
@@ -71,8 +72,8 @@ void setup_parameters(UnitCell& ucell, K_Vectors& kv)
7172

7273
std::cout << " " << std::setw(8) << "SPIN"
7374
<< std::setw(16) << "KPOINTS"
74-
<< std::setw(12) << "PROCESSORS";
75-
<< std::setw(16) << "THREADS_PER_PROC";
75+
<< std::setw(12) << "PROCESSORS"
76+
<< std::setw(12) << "THREADS";
7677

7778
const bool orbinfo = (PARAM.inp.basis_type=="lcao" || PARAM.inp.basis_type=="lcao_in_pw"
7879
|| (PARAM.inp.basis_type=="pw" && PARAM.inp.init_wfc.substr(0, 3) == "nao"));
@@ -91,7 +92,7 @@ void setup_parameters(UnitCell& ucell, K_Vectors& kv)
9192
}
9293

9394
std::cout << std::setw(12) << GlobalV::NPROC
94-
<< std::setw(16) << Parallel_Global::omp_number;
95+
<< std::setw(12) << Parallel_Global::omp_number * GlobalV::NPROC;
9596
if (orbinfo) { std::cout << std::setw(12) << PARAM.globalv.nlocal; }
9697

9798
std::cout << std::endl;

0 commit comments

Comments
 (0)