ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
chg_precond.h
Go to the documentation of this file.
1#ifndef CHG_PRECOND_H
2#define CHG_PRECOND_H
3
4// Stateless Kerker preconditioning kernels extracted from Charge_Mixing.
5// Every input (grid, geometry, mixing config) is passed explicitly; the
6// functions do not read Charge_Mixing members or PARAM/GlobalV.
7
8#include <complex>
9
10#include "chg_mix_cfg.h"
11
12namespace ModulePW
13{
14class PW_Basis;
15}
16
17namespace module_charge
18{
19
32void kerker_screen_recip(const MixingConfig& cfg,
33 ModulePW::PW_Basis* rhopw,
34 double tpiba,
35 std::complex<double>* drhog);
36
49void kerker_screen_real(const MixingConfig& cfg,
50 ModulePW::PW_Basis* rhopw,
51 double tpiba,
52 double* drhor);
53
54} // namespace module_charge
55
56#endif // CHG_PRECOND_H
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Definition pw_op.cpp:3
Charge-density symmetrization free functions.
Definition charge.h:18
void kerker_screen_recip(const MixingConfig &cfg, ModulePW::PW_Basis *rhopw, double tpiba, std::complex< double > *drhog)
Apply Kerker screening in reciprocal space.
Definition chg_precond.cpp:15
void kerker_screen_real(const MixingConfig &cfg, ModulePW::PW_Basis *rhopw, double tpiba, double *drhor)
Apply Kerker screening in real space via FFT.
Definition chg_precond.cpp:89