Skip to content

Commit a45138b

Browse files
committed
save
1 parent 1c1d006 commit a45138b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_rdmft/rdmft.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ void RDMFT<TK, TR>::cal_Energy(const int cal_type)
850850
E_RDMFT[1] = getEnergy(Ehartree_n_k);
851851

852852
// for Exc
853+
E_RDMFT[2] = 0.0;
853854
#ifdef __EXX
854855
if( GlobalC::exx_info.info_global.cal_exx )
855856
{
@@ -860,7 +861,6 @@ void RDMFT<TK, TR>::cal_Energy(const int cal_type)
860861
Parallel_Reduce::reduce_all(E_RDMFT[2]);
861862
}
862863
#endif
863-
// the initial value of E_RDMFT[2] is 0.0
864864
E_RDMFT[2] += etxc;
865865

866866
// add up the results obtained by all processors, or we can do reduce_all(wfcHwfc_) before add_wg() used for Etotal to replace it

0 commit comments

Comments
 (0)