Skip to content

Commit 6f9f9f7

Browse files
author
jiyuang
committed
fix energy_dos.cpp compiling bug
1 parent a6b4bc8 commit 6f9f9f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/src_io/energy_dos.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,8 @@ void energy::perform_dos(Local_Orbital_wfc &lowf, LCAO_Hamilt &uhm)
726726

727727
uhm.LM->allocate_HS_R(pv->nnr);
728728
uhm.LM->zeros_HSR('S');
729-
uhm.genH.calculate_S_no();
730-
uhm.genH.build_ST_new('S', false, GlobalC::ucell);
729+
uhm.genH.calculate_S_no(uhm.LM->SlocR.data());
730+
uhm.genH.build_ST_new('S', false, GlobalC::ucell, uhm.LM->SlocR.data());
731731
std::vector<ModuleBase::ComplexMatrix> Mulk;
732732
Mulk.resize(1);
733733
Mulk[0].create(pv->ncol,pv->nrow);

0 commit comments

Comments
 (0)