ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
esolver_ks_lcaopw.h
Go to the documentation of this file.
1#ifndef ESOLVER_KS_LIP_H
2#define ESOLVER_KS_LIP_H
6
7#ifdef __EXX
9#endif
10namespace ModuleESolver
11{
12
13template <typename T>
14class ESolver_KS_LIP : public ESolver_KS_PW<T, base_device::DEVICE_CPU>
15{
16 private:
17 using Real = typename GetTypeReal<T>::type;
18
19 public:
21
23
24 void before_all_runners(BaseCell &basecell, const Input_para &inp) override;
25 void after_all_runners(BaseCell &basecell) override;
26
27 virtual void before_scf(UnitCell &ucell, const int istep) override;
28
29 protected:
30 virtual void iter_init(UnitCell &ucell, const int istep, const int iter) override;
31 virtual void iter_finish(
32 UnitCell &ucell,
33 const int istep,
34 int &iter,
35 bool &conv_esolver) override;
36
38 virtual void hamilt2rho_single(
39 UnitCell &ucell,
40 const int istep,
41 const int iter,
42 const double ethr) override;
43
44 virtual void allocate_hamilt(const UnitCell &ucell) override;
45
47
50
51#ifdef __EXX
52 std::unique_ptr<Exx_Lip<T>> exx_lip;
53 int two_level_step = 0;
54#endif
55};
56} // namespace ModuleESolver
57#endif
Definition basecell.h:9
void before_all_runners(BaseCell &basecell, const Input_para &inp) override
Initialize of the first-principels energy solver.
Definition esolver_ks_lcaopw.cpp:81
~ESolver_KS_LIP()
Definition esolver_ks_lcaopw.cpp:46
virtual void iter_init(UnitCell &ucell, const int istep, const int iter) override
Something to do before hamilt2rho function in each iter loop.
Definition esolver_ks_lcaopw.cpp:116
void after_all_runners(BaseCell &basecell) override
perform post processing calculations
Definition esolver_ks_lcaopw.cpp:267
typename GetTypeReal< T >::type Real
Definition esolver_ks_lcaopw.h:17
Exx_Info_Lip info_lip_
LIP-specific EXX info (lambda, ccp_type, hse_omega).
Definition esolver_ks_lcaopw.h:49
virtual void before_scf(UnitCell &ucell, const int istep) override
Something to do before SCF iterations.
Definition esolver_ks_lcaopw.cpp:73
ESolver_KS_LIP()
Definition esolver_ks_lcaopw.cpp:40
virtual void iter_finish(UnitCell &ucell, const int istep, int &iter, bool &conv_esolver) override
Something to do after hamilt2rho function in each iter loop.
Definition esolver_ks_lcaopw.cpp:186
virtual void allocate_hamilt(const UnitCell &ucell) override
Definition esolver_ks_lcaopw.cpp:61
virtual void hamilt2rho_single(UnitCell &ucell, const int istep, const int iter, const double ethr) override
All the other interfaces except this one are the same as ESolver_KS_PW.
Definition esolver_ks_lcaopw.cpp:128
psi::Psi< T, base_device::DEVICE_CPU > * psi_local
psi for all local NAOs
Definition esolver_ks_lcaopw.h:46
bool conv_esolver
Definition esolver.h:46
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition psi.h:37
The First-Principles (FP) Energy Solver Class.
Definition opt_test_tools.cpp:93
Definition exx_info_lip.h:7
T type
Definition macros.h:8
Definition input_parameter.h:13