Skip to content

Commit 517125c

Browse files
committed
Fix: delete useless allocation
1 parent ade5cd6 commit 517125c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/src_lcao/LCAO_matrix.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ void LCAO_Matrix::allocate_HS_gamma(const long &nloc)
7878
this->Sloc.resize(nloc);
7979
this->Hloc_fixed.resize(nloc);
8080
this->Hloc.resize(nloc);
81-
this->Sdiag.resize(nloc);
81+
//this->Sdiag.resize(nloc);
8282

8383
ModuleBase::GlobalFunc::ZEROS(Sloc.data(),nloc);
8484
ModuleBase::GlobalFunc::ZEROS(Hloc_fixed.data(),nloc);
8585
ModuleBase::GlobalFunc::ZEROS(Hloc.data(),nloc);
86-
ModuleBase::GlobalFunc::ZEROS(Sdiag.data(),nloc); // mohan add 2021-01-30
86+
//ModuleBase::GlobalFunc::ZEROS(Sdiag.data(),nloc); // mohan add 2021-01-30
8787

8888
return;
8989
}
@@ -102,7 +102,7 @@ void LCAO_Matrix::allocate_HS_k(const long &nloc)
102102
this->Sloc2.resize(nloc);
103103
this->Hloc_fixed2.resize(nloc);
104104
this->Hloc2.resize(nloc);
105-
this->Sdiag2.resize(nloc);
105+
//this->Sdiag2.resize(nloc);
106106

107107
ModuleBase::GlobalFunc::ZEROS(Sloc2.data(),nloc);
108108
ModuleBase::GlobalFunc::ZEROS(Hloc_fixed2.data(),nloc);

0 commit comments

Comments
 (0)