Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/module_io/read_wfc_nao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ void ModuleIO::distri_wfc_nao(double** ctot, const int& is,
//1. alloc work array; set some parameters

long maxnloc; // maximum number of elements in local matrix
MPI_Reduce(&ParaV->nloc, &maxnloc, 1, MPI_LONG, MPI_MAX, 0, ParaV->comm_2D);
MPI_Reduce(&ParaV->nloc_wfc, &maxnloc, 1, MPI_LONG, MPI_MAX, 0, ParaV->comm_2D);
MPI_Bcast(&maxnloc, 1, MPI_LONG, 0, ParaV->comm_2D);
//reduce and bcast could be replaced by allreduce

Expand Down Expand Up @@ -375,7 +375,7 @@ assert(GlobalV::NB2D > 0);
const int inc=1;
if(myid==src_rank)
{
BlasConnector::copy(ParaV->nloc, work, inc, &(psid[0](is, 0, 0)), inc);
BlasConnector::copy(ParaV->nloc_wfc, work, inc, &(psid[0](is, 0, 0)), inc);
}
}//loop ipcol
}//loop iprow
Expand Down