Skip to content

Commit 2c0bc90

Browse files
maki49dyzheng
authored andcommitted
fix a bug about hcontainer in exx nscf (deepmodeling#5927)
1 parent 55e47bf commit 2c0bc90

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

source/module_ri/RI_2D_Comm.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,6 @@ void RI_2D_Comm::add_HexxR(
263263
cell_nearest->get_cell_nearest_discrete(iat0, iat1, cell)
264264
: cell));
265265
hamilt::BaseMatrix<TR>* HlocR = hR.find_matrix(iat0, iat1, R.x, R.y, R.z);
266-
if (HlocR == nullptr)
267-
{ // add R to HContainer
268-
hamilt::AtomPair<TR> tmp(iat0, iat1, R.x, R.y, R.z, &pv);
269-
hR.insert_pair(tmp);
270-
HlocR = hR.find_matrix(iat0, iat1, R.x, R.y, R.z);
271-
}
272266
auto row_indexes = pv.get_indexes_row(iat0);
273267
auto col_indexes = pv.get_indexes_col(iat1);
274268
const RI::Tensor<Tdata>& HexxR = (Tdata)alpha * Hs_tmpB.second;

0 commit comments

Comments
 (0)