Skip to content

Commit 7cd5d0d

Browse files
committed
Update result.ref.
1 parent e175d02 commit 7cd5d0d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

source/module_hamilt_lcao/module_deepks/LCAO_deepks_interface.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
5858
const int nspin = PARAM.inp.nspin;
5959
const int nk = nks / nspin;
6060

61+
// Update DMR in any case of deepks_out_labels/deepks_scf
62+
DeePKS_domain::update_dmr(kvec_d, dm->get_DMK_vector(), ucell, orb, *ParaV, GridD, dmr);
63+
6164
// Note : update PDM and all other quantities with the current dm
6265
// DeePKS PDM and descriptor
6366
if (PARAM.inp.deepks_out_labels == 1 || PARAM.inp.deepks_scf)
6467
{
6568
// this part is for integrated test of deepks
6669
// so it is printed no matter even if deepks_out_labels is not used
67-
DeePKS_domain::update_dmr(kvec_d, dm->get_DMK_vector(), ucell, orb, *ParaV, GridD, dmr);
68-
6970
DeePKS_domain::cal_pdm<
7071
TK>(init_pdm, inlmax, lmaxd, inl2l, inl_index, kvec_d, dmr, phialpha, ucell, orb, GridD, *ParaV, pdm);
7172

tests/deepks/102_NO_GO_deepks_md/result.ref

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ etotref -465.9986230250963
22
etotperatomref -155.3328743417
33
totalforceref 5.535378
44
totalstressref 1.522437
5-
totaldes 2.163700
6-
deepks_e_dm -23.732952988652137
7-
deepks_f_label 18.900698754990074
8-
deepks_s_label 19.098532433749547
9-
totaltimeref 16.55
5+
deepks_desc 2.163700
6+
deepks_dm_eig 10.419815258896964
7+
totaltimeref 11.34

0 commit comments

Comments
 (0)