#include <exx_helper_base.h>
|
| | Exx_HelperBase ()=default |
| virtual | ~Exx_HelperBase ()=default |
| virtual void | init (const UnitCell &ucell, const Input_para &inp, const ModuleBase::matrix &wg, const General_Exx_Info &exx_info)=0 |
| virtual void | before_scf (void *p_hamilt, void *psi, const Input_para &inp, const General_Exx_Info &exx_info)=0 |
| virtual bool | iter_finish (void *p_elec, Charge *p_charge, void *psi, UnitCell &ucell, const Input_para &inp, bool &conv_esolver, int iter)=0 |
| virtual void | set_firstiter (bool flag=true)=0 |
| virtual void | set_wg (const ModuleBase::matrix *wg)=0 |
| virtual void | set_psi (void *psi)=0 |
| virtual void | iter_inc ()=0 |
| virtual void | set_op ()=0 |
| virtual bool | exx_after_converge (int iter, bool ene_conv)=0 |
| | Decide whether EXX has converged and SCF should rerun.
|
| virtual double | cal_exx_energy (void *psi)=0 |
| virtual bool | get_op_first_iter () const =0 |
| virtual void | set_op_first_iter (bool flag)=0 |
| virtual void | set_op_exx (void *op)=0 |
◆ Exx_HelperBase()
| Exx_HelperBase::Exx_HelperBase |
( |
| ) |
|
|
default |
◆ ~Exx_HelperBase()
| virtual Exx_HelperBase::~Exx_HelperBase |
( |
| ) |
|
|
virtualdefault |
◆ before_scf()
| virtual void Exx_HelperBase::before_scf |
( |
void * | p_hamilt, |
|
|
void * | psi, |
|
|
const Input_para & | inp, |
|
|
const General_Exx_Info & | exx_info ) |
|
pure virtual |
◆ cal_exx_energy()
| virtual double Exx_HelperBase::cal_exx_energy |
( |
void * | psi | ) |
|
|
pure virtual |
◆ exx_after_converge()
| virtual bool Exx_HelperBase::exx_after_converge |
( |
int | iter, |
|
|
bool | ene_conv ) |
|
pure virtual |
Decide whether EXX has converged and SCF should rerun.
- Note
- iter is taken by value: EXX no longer mutates the caller's iteration counter. SCF rerun is requested via the return value (false = not converged, rerun SCF) and the caller (ESolver_KS_PW) sets ESolver_KS::scf_rerun_ to trigger the restart at iter=1 in ESolver_KS::runner.
Implemented in Exx_Helper< T, Device >.
◆ get_op_first_iter()
| virtual bool Exx_HelperBase::get_op_first_iter |
( |
| ) |
const |
|
pure virtual |
◆ init()
◆ iter_finish()
| virtual bool Exx_HelperBase::iter_finish |
( |
void * | p_elec, |
|
|
Charge * | p_charge, |
|
|
void * | psi, |
|
|
UnitCell & | ucell, |
|
|
const Input_para & | inp, |
|
|
bool & | conv_esolver, |
|
|
int | iter ) |
|
pure virtual |
◆ iter_inc()
| virtual void Exx_HelperBase::iter_inc |
( |
| ) |
|
|
pure virtual |
◆ set_firstiter()
| virtual void Exx_HelperBase::set_firstiter |
( |
bool | flag = true | ) |
|
|
pure virtual |
◆ set_op()
| virtual void Exx_HelperBase::set_op |
( |
| ) |
|
|
pure virtual |
◆ set_op_exx()
| virtual void Exx_HelperBase::set_op_exx |
( |
void * | op | ) |
|
|
pure virtual |
◆ set_op_first_iter()
| virtual void Exx_HelperBase::set_op_first_iter |
( |
bool | flag | ) |
|
|
pure virtual |
◆ set_psi()
| virtual void Exx_HelperBase::set_psi |
( |
void * | psi | ) |
|
|
pure virtual |
◆ set_wg()
The documentation for this class was generated from the following file:
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_pwdft/exx_helper_base.h