Skip to content

Commit 2438c3b

Browse files
committed
delete useless code
1 parent d3673ee commit 2438c3b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

source/source_io/write_eig_occ.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ void ModuleIO::write_eig_iter(const ModuleBase::matrix &ekb,const ModuleBase::ma
2020
const int nspin = PARAM.inp.nspin;
2121
const int nks = kv.get_nks();
2222
const int nkstot = kv.get_nkstot();
23-
24-
std::vector<int> ngk_tot = kv.ngk;
25-
26-
#ifdef __MPI
27-
std::vector<int> send_ngk_tot = kv.ngk;
28-
MPI_Allreduce(send_ngk_tot.data(), ngk_tot.data(), nks, MPI_INT, MPI_SUM, POOL_WORLD);
29-
#endif
30-
3123
const int nk_fac = nspin == 2 ? 2 : 1;
3224
const int nks_np = nks / nk_fac;
3325
const int nkstot_np = nkstot / nk_fac;

0 commit comments

Comments
 (0)