Skip to content

Commit 0480f52

Browse files
authored
Fix : out_mat_dh will lead to different result with MPI-1core with MPI-4core (#6018)
1 parent 3d0de86 commit 0480f52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/module_hamilt_lcao/hamilt_lcaodft/spar_dh.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ void sparse_format::cal_dH(const UnitCell& ucell,
2626
fsr_dh.DHloc_fixedR_y = new double[nnr];
2727
fsr_dh.DHloc_fixedR_z = new double[nnr];
2828

29-
ModuleBase::GlobalFunc::ZEROS(fsr_dh.DHloc_fixedR_x, pv.nloc);
30-
ModuleBase::GlobalFunc::ZEROS(fsr_dh.DHloc_fixedR_y, pv.nloc);
31-
ModuleBase::GlobalFunc::ZEROS(fsr_dh.DHloc_fixedR_z, pv.nloc);
29+
ModuleBase::GlobalFunc::ZEROS(fsr_dh.DHloc_fixedR_x, nnr);
30+
ModuleBase::GlobalFunc::ZEROS(fsr_dh.DHloc_fixedR_y, nnr);
31+
ModuleBase::GlobalFunc::ZEROS(fsr_dh.DHloc_fixedR_z, nnr);
3232
// cal dT=<phi|kin|dphi> in LCAO
3333
// cal T + VNL(P1) in LCAO basis
3434
const bool cal_deri = true;

0 commit comments

Comments
 (0)