1313// If the absolute value of the matrix element is less than or equal to the
1414// 'sparse_thr', it will be ignored.
1515void ModuleIO::output_HSR (const int & istep,
16+ const UnitCell& ucell,
1617 const ModuleBase::matrix& v_eff,
1718 const Parallel_Orbitals& pv,
1819 LCAO_HS_Arrays& HS_Arrays,
@@ -37,7 +38,7 @@ void ModuleIO::output_HSR(const int& istep,
3738 if (nspin == 1 || nspin == 4 ) {
3839 const int spin_now = 0 ;
3940 // jingan add 2021-6-4, modify 2021-12-2
40- sparse_format::cal_HSR (pv, HS_Arrays, grid, spin_now, sparse_thr, kv.nmp , p_ham
41+ sparse_format::cal_HSR (ucell, pv, HS_Arrays, grid, spin_now, sparse_thr, kv.nmp , p_ham
4142#ifdef __EXX
4243 , Hexxd, Hexxc
4344#endif
@@ -47,7 +48,7 @@ void ModuleIO::output_HSR(const int& istep,
4748 int spin_now = 1 ;
4849
4950 // save HR of spin down first (the current spin always be down)
50- sparse_format::cal_HSR (pv, HS_Arrays, grid, spin_now, sparse_thr, kv.nmp , p_ham
51+ sparse_format::cal_HSR (ucell, pv, HS_Arrays, grid, spin_now, sparse_thr, kv.nmp , p_ham
5152#ifdef __EXX
5253 , Hexxd, Hexxc
5354#endif
@@ -61,7 +62,7 @@ void ModuleIO::output_HSR(const int& istep,
6162 spin_now = 0 ;
6263 }
6364
64- sparse_format::cal_HSR (pv, HS_Arrays, grid, spin_now, sparse_thr, kv.nmp , p_ham
65+ sparse_format::cal_HSR (ucell, pv, HS_Arrays, grid, spin_now, sparse_thr, kv.nmp , p_ham
6566#ifdef __EXX
6667 , Hexxd, Hexxc
6768#endif
0 commit comments