Skip to content

Commit 119872f

Browse files
committed
update updateHk funciton parameters
1 parent d9eac9e commit 119872f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

source/module_esolver/lcao_after_scf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ void ESolver_KS_LCAO<TK, TR>::after_scf(UnitCell& ucell, const int istep, const
221221
PARAM.globalv.nlocal,
222222
this->pelec->ekb,
223223
this->pelec->klist->kvec_d,
224+
this->pelec->klist->isk,
224225
ucell,
225226
orb_,
226227
this->gd,

source/module_hamilt_lcao/module_deepks/LCAO_deepks_interface.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
2121
const int& nlocal,
2222
const ModuleBase::matrix& ekb,
2323
const std::vector<ModuleBase::Vector3<double>>& kvec_d,
24+
const std::vector<int>& isk, // mohan add 2025-04-01
2425
const UnitCell& ucell,
2526
const LCAO_Orbitals& orb,
2627
const Grid_Driver& GridD,
@@ -337,8 +338,11 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
337338
for (int ik = 0; ik < nks; ik++)
338339
{
339340
h_tot[ik].create(nlocal, nlocal);
340-
p_ham->updateHk(ik);
341+
342+
p_ham->updateHk(ik, isk[ik]);
343+
341344
const TK* hk_ptr = p_ham->getHk();
345+
342346
for (int i = 0; i < ParaV->nloc; i++)
343347
{
344348
h_mat[ik][i] = hk_ptr[i];

source/module_hamilt_lcao/module_deepks/LCAO_deepks_interface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class LCAO_Deepks_Interface
3737
const int& nlocal,
3838
const ModuleBase::matrix& ekb,
3939
const std::vector<ModuleBase::Vector3<double>>& kvec_d,
40+
const std::vector<int>& isk, // mohan add 2025-04-01
4041
const UnitCell& ucell,
4142
const LCAO_Orbitals& orb,
4243
const Grid_Driver& GridD,
@@ -51,4 +52,4 @@ class LCAO_Deepks_Interface
5152
};
5253

5354
#endif
54-
#endif
55+
#endif

0 commit comments

Comments
 (0)