Skip to content

Commit c97342f

Browse files
author
zxy.monado
committed
Fix SDFT pool communication context
1 parent 89a0d50 commit c97342f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

source/source_hsolver/hsolver_pw_sdft.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ void HSolverPW_SDFT<T, Device>::solve(const UnitCell& ucell,
2727
ModuleBase::TITLE("HSolverPW_SDFT", "solve");
2828
ModuleBase::timer::start("HSolverPW_SDFT", "solve");
2929

30+
this->rank_in_pool = wfc_basis->poolrank;
31+
this->nproc_in_pool = wfc_basis->poolnproc;
32+
3033
const int npwx = psi.get_nbasis();
3134
const int nbands = psi.get_nbands();
3235
const int nks = psi.get_nk();

0 commit comments

Comments
 (0)