Skip to content

Commit 80f546f

Browse files
dyzhengdyzheng
andauthored
Fix: bug of PR #3299 (#3304)
* Perf: save HR for spin-up and spin-down both in hamilt_lcao for delta_spin * fix: bug of nspin2 and hse * fix: useless debug info * Fix: reallocate hR when HamiltLCAO::refresh --------- Co-authored-by: dyzheng <zhengdy@bjaisi.com>
1 parent 36bdd4f commit 80f546f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/module_hamilt_lcao/hamilt_lcaodft/hamilt_lcao.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ void HamiltLCAO<TK, TR>::refresh()
404404
// operator has changed, resize hRS2
405405
this->hRS2.resize(this->hR->get_nnr() * 2);
406406
}
407+
this->hR->allocate(this->hRS2.data(), 0);
407408
}
408409
}
409410

0 commit comments

Comments
 (0)