Skip to content

Commit 7ae2c4d

Browse files
authored
Merge pull request #150 from LiuXiaohui123321/develop
fix a bug in OpenMP optimization for nonlocal pseudo-potential under gamma-only line
2 parents 81731f1 + 8f1f0ee commit 7ae2c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/src_lcao/LCAO_gen_fixedH.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ void LCAO_gen_fixedH::build_Nonlocal_beta_new(double* HSloc) //update by liuyu 2
11881188
nlm_tot_thread.resize(adjs_all[iat].size());
11891189
#else
11901190
std::vector<std::unordered_map<int,std::vector<double>>> nlm_tot;
1191-
nlm_tot.resize(GlobalC::GridD.getAdjacentNum()+1);
1191+
nlm_tot.resize(adjs_all[iat].size());
11921192
#endif
11931193

11941194
const ModuleBase::Vector3<double> tau0 = atom0->tau[I0];

0 commit comments

Comments
 (0)