File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments