Skip to content

Commit 6987b30

Browse files
rootroot
authored andcommitted
add non-MPI code in WF_Local::distri_lowf_new()
1 parent 349c243 commit 6987b30

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/src_io/wf_local.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,13 @@ void WF_Local::distri_lowf_new(double** ctot, const int& is,
481481

482482
delete[] work;
483483
#else
484-
ModuleBase::WARNING_QUIT("WF_Local::distri_lowf_new","check the code without MPI.");
484+
for (int i=0; i<GlobalV::NBANDS; i++)
485+
{
486+
for (int j=0; j<GlobalV::NLOCAL; j++)
487+
{
488+
lowf.wfc_gamma[is](i,j) = ctot[i][j];
489+
}
490+
}
485491
#endif
486492
return;
487493
}

0 commit comments

Comments
 (0)