Skip to content

Commit f612121

Browse files
committed
save
1 parent 890d641 commit f612121

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/module_rdmft/rdmft.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ class RDMFT
8888
// Or we can use rdmft_solver.wfc/occ_number directly when optimizing, so that the update_elec() function does not require parameters.
8989
void update_elec(const ModuleBase::matrix& occ_number_in, const psi::Psi<TK>& wfc_in, const Charge* charge_in = nullptr);
9090

91+
//! get the gradient of total energy with respect to occupation number and wfc respectively
92+
double cal_E_grad_wfc_occ_num();
93+
94+
void cal_Energy(const int cal_type = 1);
95+
9196
//! update occ_number for optimization algorithms that depend on Hamilton
9297
void update_occNumber(const ModuleBase::matrix& occ_number_in);
9398

@@ -110,10 +115,6 @@ class RDMFT
110115
//! construct V_XC based on different XC_functional( i.e. RDMFT class member XC_func_rdmft)
111116
void cal_V_XC();
112117

113-
double cal_E_grad_wfc_occ_num();
114-
115-
void cal_Energy(const int cal_type = 1);
116-
117118
//! get the total Hamilton in k-space
118119
void cal_Hk_Hpsi();
119120

0 commit comments

Comments
 (0)