Skip to content

Commit b4f1e1b

Browse files
committed
Fix numerical error in DeePKS vdrpre.
1 parent 1b891d4 commit b4f1e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/source_lcao/module_deepks/deepks_vdrpre.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void DeePKS_domain::cal_vdr_precalc(const int nlocal,
153153
hamilt::BaseMatrix<double>* overlap_1 = phialpha[0]->find_matrix(iat, ibt1, dR1);
154154
hamilt::BaseMatrix<double>* overlap_2 = phialpha[0]->find_matrix(iat, ibt2, dR2);
155155
assert(overlap_1->get_col_size() == overlap_2->get_col_size());
156-
ModuleBase::Vector3<int> dR = dR1 - dR2;
156+
ModuleBase::Vector3<int> dR = dR2 - dR1;
157157
int iRx = DeePKS_domain::mapping_R(dR.x);
158158
int iRy = DeePKS_domain::mapping_R(dR.y);
159159
int iRz = DeePKS_domain::mapping_R(dR.z);

0 commit comments

Comments
 (0)