ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hamilt::OperatorEXXPW< T, Device > Class Template Reference

#include <op_pw_exx.h>

Inheritance diagram for hamilt::OperatorEXXPW< T, Device >:
Collaboration diagram for hamilt::OperatorEXXPW< T, Device >:

Public Member Functions

 OperatorEXXPW (const int *isk_in, const ModulePW::PW_Basis_K *wfcpw_in, const ModulePW::PW_Basis *rhopw_in, K_Vectors *kv_in, const UnitCell *ucell, const General_Exx_Info &exx_info, const int nspin_in, const int kpar_in, const int my_rank_in, const int my_pool_in)
template<typename T_in, typename Device_in = Device>
 OperatorEXXPW (const OperatorEXXPW< T_in, Device_in > *op_exx)
virtual ~OperatorEXXPW ()
virtual void act (const int nbands, const int nbasis, const int npol, const T *tmpsi_in, T *tmhpsi, const int ngk_ik=0, const bool is_first_node=false) const override
double cal_exx_energy (psi::Psi< T, Device > *psi_) const
void set_psi (psi::Psi< T, Device > &psi_in) const
void set_wg (const ModuleBase::matrix *wg_in)
void set_source (std::unique_ptr< ModulePW::PW_Basis_K > source_basis, std::unique_ptr< K_Vectors > source_points, const psi::Psi< T, Device > &source_psi, ModuleBase::matrix source_weights)
void construct_ace () const
Public Member Functions inherited from hamilt::OperatorPW< T, Device >
virtual ~OperatorPW ()
Public Member Functions inherited from hamilt::Operator< T, Device >
 Operator ()
virtual ~Operator ()
virtual hpsi_info hPsi (hpsi_info &input) const
 Core hot-path: compute H|psi> by traversing the operator chain.
virtual void init (const int ik_in)
virtual void add (Operator *next)
virtual int get_ik () const
int get_act_type () const
calculation_type get_cal_type () const

Public Attributes

bool first_iter = true
bool separate_loop = false
Real hybrid_alpha = 0.0
CoulombParam coulomb_param
Public Attributes inherited from hamilt::OperatorPW< T, Device >
std::string classname
Public Attributes inherited from hamilt::Operator< T, Device >
Operator * next_op
 interface type 3: return a Psi-type HPsi

Static Public Attributes

static std::vector< Real > fock_div
static std::vector< Real > erfc_div

Private Types

using Real = typename GetTypeReal<T>::type
using ct_Device = typename ct::PsiToContainer<Device>::type
using setmem_complex_op = base_device::memory::set_memory_op<T, Device>
using setmem_real_op = base_device::memory::set_memory_op<Real, Device>
using setmem_real_cpu_op = base_device::memory::set_memory_op<Real, base_device::DEVICE_CPU>
using resmem_complex_op = base_device::memory::resize_memory_op<T, Device>
using delmem_complex_op = base_device::memory::delete_memory_op<T, Device>
using syncmem_complex_op = base_device::memory::synchronize_memory_op<T, Device, Device>
using resmem_real_op = base_device::memory::resize_memory_op<Real, Device>
using delmem_real_op = base_device::memory::delete_memory_op<Real, Device>
using gemm_complex_op = ModuleBase::gemm_op<T, Device>
using axpy_complex_op = ModuleBase::axpy_op<T, Device>
using vec_add_vec_complex_op = ModuleBase::vector_add_vector_op<T, Device, Real>
using dot_op = ModuleBase::dot_real_op<T, Device>
using syncmem_complex_c2d_op = base_device::memory::synchronize_memory_op<T, Device, base_device::DEVICE_CPU>
using syncmem_complex_d2c_op = base_device::memory::synchronize_memory_op<T, base_device::DEVICE_CPU, Device>
using syncmem_real_c2d_op = base_device::memory::synchronize_memory_op<Real, Device, base_device::DEVICE_CPU>
using syncmem_real_d2c_op = base_device::memory::synchronize_memory_op<Real, base_device::DEVICE_CPU, Device>
using resmem_int_op = base_device::memory::resize_memory_op<int, Device>
using delmem_int_op = base_device::memory::delete_memory_op<int, Device>
using syncmem_int_h2d_op = base_device::memory::synchronize_memory_op<int, Device, base_device::DEVICE_CPU>
using syncmem_int_d2h_op = base_device::memory::synchronize_memory_op<int, base_device::DEVICE_CPU, Device>
using lapack_potrf = container::kernels::lapack_potrf<T, ct_Device>
using lapack_trtri = container::kernels::lapack_trtri<T, ct_Device>

Private Member Functions

std::vector< int > get_q_points (const int ik) const
const T * get_pw (const int m, const int iq) const
void multiply_potential (T *density_recip, int ik, int iq) const
void act_op (const int nbands, const int nbasis, const int npol, const T *tmpsi_in, T *tmhpsi, const int ngk_ik=0, const bool is_first_node=false) const
void act_op_kpar (const int nbands, const int nbasis, const T *tmpsi_in, T *tmhpsi, const int ispin, const bool has_kpoint) const
void act_op_ace (const int nbands, const int nbasis, const int npol, const T *tmpsi_in, T *tmhpsi, const int ngk_ik=0, const bool is_first_node=false) const
double cal_exx_energy_op (psi::Psi< T, Device > *psi_) const
double cal_exx_energy_ace (psi::Psi< T, Device > *psi_) const
void cal_density_recip (const T *psi_nk_real, const T *psi_mq_real, double omega) const
void rho_recip2real (const T *rho_recip, T *rho_real, bool add=false, Real factor=1.0) const
void maybe_setup_exx_grid () const
bool exx_grid_active () const
int exx_band_chunk (const int nbands) const
int exx_grid_size () const
const int * active_map_rho () const
const int * active_map_wfc (const int ik) const
void cache_psi_nk_real (const int nbands, const int nbasis, const T *psi_in, const int ik) const
void wfc_to_real_exx (const T *psi_m, const int iq, const int psi_stride) const
void apply_fock_all_bands (const int nbands, const int nbasis, const int iq, const Real factor, T *tmhpsi) const
void prepare_pair_densities (const int start, const int count) const
const T * pair_density (const int n) const
void setup_exx_small_grid () const
void setup_full_grid_maps () const
void apply_exx_nbatched (const int nbands, const int nbasis, const T *psi_mq_real, const Real factor, T *tmhpsi) const
void calc_density_pw_nbatched (const int nbands, const T *nk_real, const T *psi_mq_real) const
void ensure_exx_batch (const int nbands) const
void cal_density_recip (const std::complex< double > *psi_nk_real, const std::complex< double > *psi_mq_real, double omega) const
void cal_density_recip (const std::complex< float > *psi_nk_real, const std::complex< float > *psi_mq_real, double omega) const
void rho_recip2real (const std::complex< double > *rho_recip, std::complex< double > *rho_real, bool add, double factor) const
void rho_recip2real (const std::complex< float > *rho_recip, std::complex< float > *rho_real, bool add, float factor) const
void cal_density_recip (const std::complex< double > *psi_nk_real, const std::complex< double > *psi_mq_real, double omega) const
void cal_density_recip (const std::complex< float > *psi_nk_real, const std::complex< float > *psi_mq_real, double omega) const
void rho_recip2real (const std::complex< double > *rho_recip, std::complex< double > *rho_real, bool add, double factor) const
void rho_recip2real (const std::complex< float > *rho_recip, std::complex< float > *rho_real, bool add, float factor) const

Private Attributes

const int * isk = nullptr
const ModulePW::PW_Basis_K * wfcpw = nullptr
const ModulePW::PW_Basis_K * source_basis_ = nullptr
const K_Vectors * source_points_ = nullptr
std::unique_ptr< ModulePW::PW_Basis_K > owned_source_basis_
std::unique_ptr< K_Vectors > owned_source_points_
ModuleBase::matrix owned_source_weights_
const ModulePW::PW_Basis * rhopw = nullptr
ModulePW::PW_Basis * rhopw_dev = nullptr
const UnitCell * ucell = nullptr
Real tpiba = 0
int nspin_ = 1
double ecut_exx_ = 0.0
bool ecutexx_user_set_ = false
int exx_batch_size_ = 0
bool exxace_ = false
int my_rank_ = 0
int my_pool_ = 0
int cnt = 0
bool potential_got = false
K_Vectors * kv = nullptr
psi::Psi< T, Device > psi
const ModuleBase::matrix * wg
T * psi_nk_real = nullptr
T * psi_mq_real = nullptr
T * psi_nk_real_cache = nullptr
int psi_nk_cache_size = 0
bool exx_sg_init = false
bool exx_sg_ok = false
int sg_nx = 0
int sg_ny = 0
int sg_nz = 0
int sg_nxyz = 0
int * sg_map_rho = nullptr
int * sg_map_wfc = nullptr
int * full_map_rho = nullptr
int * full_map_wfc = nullptr
void * exx_fft_plan = nullptr
void * exx_fft_plan1 = nullptr
int exx_fft_plan_nx = 0
int exx_fft_plan_ny = 0
int exx_fft_plan_nz = 0
T * dens_box_batch = nullptr
T * dens_pw_batch = nullptr
int exx_batch_alloc = 0
int dens_chunk_base = 0
T * density_real = nullptr
T * h_psi_real = nullptr
T * density_recip = nullptr
T * h_psi_recip = nullptr
Real * pot = nullptr
T * h_psi_ace = nullptr
T * psi_h_psi_ace = nullptr
T * L_ace = nullptr
std::vector< T * > Xi_ace_k
std::map< int, std::vector< int > > q_points
const ModuleBase::matrix * p_wg
Device * ctx = {}
base_device::DEVICE_CPU * cpu_ctx = {}
base_device::AbacusDevice_t device = {}
bool gamma_extrapolation = true

Additional Inherited Members

Public Types inherited from hamilt::Operator< T, Device >
typedef std::tuple< const psi::Psi< T, Device > *, const psi::Range, T * > hpsi_info
 input type of hPsi: (psi_input, range, hpsi_pointer)
Protected Types inherited from hamilt::Operator< T, Device >
using set_memory_op
Protected Member Functions inherited from hamilt::Operator< T, Device >
T * get_hpsi (const hpsi_info &info) const
Protected Attributes inherited from hamilt::Operator< T, Device >
int ik
int act_type
 determine which act() interface would be called in hPsi()
bool in_place
enum calculation_type cal_type
Operator * next_sub_op
bool is_first_node
psi::Psi< T, Device > * hpsi
Device * ctx

Member Typedef Documentation

◆ axpy_complex_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::axpy_complex_op = ModuleBase::axpy_op<T, Device>
private

◆ ct_Device

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::ct_Device = typename ct::PsiToContainer<Device>::type
private

◆ delmem_complex_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::delmem_complex_op = base_device::memory::delete_memory_op<T, Device>
private

◆ delmem_int_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::delmem_int_op = base_device::memory::delete_memory_op<int, Device>
private

◆ delmem_real_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::delmem_real_op = base_device::memory::delete_memory_op<Real, Device>
private

◆ dot_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::dot_op = ModuleBase::dot_real_op<T, Device>
private

◆ gemm_complex_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::gemm_complex_op = ModuleBase::gemm_op<T, Device>
private

◆ lapack_potrf

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::lapack_potrf = container::kernels::lapack_potrf<T, ct_Device>
private

◆ lapack_trtri

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::lapack_trtri = container::kernels::lapack_trtri<T, ct_Device>
private

◆ Real

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::Real = typename GetTypeReal<T>::type
private

◆ resmem_complex_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::resmem_complex_op = base_device::memory::resize_memory_op<T, Device>
private

◆ resmem_int_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::resmem_int_op = base_device::memory::resize_memory_op<int, Device>
private

◆ resmem_real_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::resmem_real_op = base_device::memory::resize_memory_op<Real, Device>
private

◆ setmem_complex_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::setmem_complex_op = base_device::memory::set_memory_op<T, Device>
private

◆ setmem_real_cpu_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::setmem_real_cpu_op = base_device::memory::set_memory_op<Real, base_device::DEVICE_CPU>
private

◆ setmem_real_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::setmem_real_op = base_device::memory::set_memory_op<Real, Device>
private

◆ syncmem_complex_c2d_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::syncmem_complex_c2d_op = base_device::memory::synchronize_memory_op<T, Device, base_device::DEVICE_CPU>
private

◆ syncmem_complex_d2c_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::syncmem_complex_d2c_op = base_device::memory::synchronize_memory_op<T, base_device::DEVICE_CPU, Device>
private

◆ syncmem_complex_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::syncmem_complex_op = base_device::memory::synchronize_memory_op<T, Device, Device>
private

◆ syncmem_int_d2h_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::syncmem_int_d2h_op = base_device::memory::synchronize_memory_op<int, base_device::DEVICE_CPU, Device>
private

◆ syncmem_int_h2d_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::syncmem_int_h2d_op = base_device::memory::synchronize_memory_op<int, Device, base_device::DEVICE_CPU>
private

◆ syncmem_real_c2d_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::syncmem_real_c2d_op = base_device::memory::synchronize_memory_op<Real, Device, base_device::DEVICE_CPU>
private

◆ syncmem_real_d2c_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::syncmem_real_d2c_op = base_device::memory::synchronize_memory_op<Real, base_device::DEVICE_CPU, Device>
private

◆ vec_add_vec_complex_op

template<typename T, typename Device>
using hamilt::OperatorEXXPW< T, Device >::vec_add_vec_complex_op = ModuleBase::vector_add_vector_op<T, Device, Real>
private

Constructor & Destructor Documentation

◆ OperatorEXXPW() [1/2]

template<typename T, typename Device>
hamilt::OperatorEXXPW< T, Device >::OperatorEXXPW ( const int * isk_in,
const ModulePW::PW_Basis_K * wfcpw_in,
const ModulePW::PW_Basis * rhopw_in,
K_Vectors * kv_in,
const UnitCell * ucell,
const General_Exx_Info & exx_info,
const int nspin_in,
const int kpar_in,
const int my_rank_in,
const int my_pool_in )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OperatorEXXPW() [2/2]

template<typename T, typename Device>
template<typename T_in, typename Device_in>
hamilt::OperatorEXXPW< T, Device >::OperatorEXXPW ( const OperatorEXXPW< T_in, Device_in > * op_exx)
explicit
Here is the call graph for this function:

◆ ~OperatorEXXPW()

template<typename T, typename Device>
hamilt::OperatorEXXPW< T, Device >::~OperatorEXXPW ( )
virtual
Here is the call graph for this function:

Member Function Documentation

◆ act()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::act ( const int nbands,
const int nbasis,
const int npol,
const T * tmpsi_in,
T * tmhpsi,
const int ngk_ik = 0,
const bool is_first_node = false ) const
overridevirtual

do operation : |hpsi_choosed> = V|psi_choosed> V is the target operator act on choosed psi, the consequence should be added to choosed hpsi interface type 1: pointer-only (default)

Note
PW: nbasis = max_npw * npol, nbands = nband * npol, npol = npol. Strange but PAY ATTENTION!!!

Reimplemented from hamilt::Operator< T, Device >.

Here is the call graph for this function:

◆ act_op()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::act_op ( const int nbands,
const int nbasis,
const int npol,
const T * tmpsi_in,
T * tmhpsi,
const int ngk_ik = 0,
const bool is_first_node = false ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ act_op_ace()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::act_op_ace ( const int nbands,
const int nbasis,
const int npol,
const T * tmpsi_in,
T * tmhpsi,
const int ngk_ik = 0,
const bool is_first_node = false ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ act_op_kpar()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::act_op_kpar ( const int nbands,
const int nbasis,
const T * tmpsi_in,
T * tmhpsi,
const int ispin,
const bool has_kpoint ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ active_map_rho()

template<typename T, typename Device>
const int * hamilt::OperatorEXXPW< T, Device >::active_map_rho ( ) const
private
Here is the caller graph for this function:

◆ active_map_wfc()

template<typename T, typename Device>
const int * hamilt::OperatorEXXPW< T, Device >::active_map_wfc ( const int ik) const
private
Here is the caller graph for this function:

◆ apply_exx_nbatched()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::apply_exx_nbatched ( const int nbands,
const int nbasis,
const T * psi_mq_real,
const Real factor,
T * tmhpsi ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_fock_all_bands()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::apply_fock_all_bands ( const int nbands,
const int nbasis,
const int iq,
const Real factor,
T * tmhpsi ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cache_psi_nk_real()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::cache_psi_nk_real ( const int nbands,
const int nbasis,
const T * psi_in,
const int ik ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_density_recip() [1/5]

void hamilt::OperatorEXXPW< std::complex< double >, base_device::DEVICE_CPU >::cal_density_recip ( const std::complex< double > * psi_nk_real,
const std::complex< double > * psi_mq_real,
double omega ) const
private
Here is the call graph for this function:

◆ cal_density_recip() [2/5]

void hamilt::OperatorEXXPW< std::complex< double >, base_device::DEVICE_CPU >::cal_density_recip ( const std::complex< double > * psi_nk_real,
const std::complex< double > * psi_mq_real,
double omega ) const
private
Here is the call graph for this function:

◆ cal_density_recip() [3/5]

void hamilt::OperatorEXXPW< std::complex< float >, base_device::DEVICE_CPU >::cal_density_recip ( const std::complex< float > * psi_nk_real,
const std::complex< float > * psi_mq_real,
double omega ) const
private
Here is the call graph for this function:

◆ cal_density_recip() [4/5]

void hamilt::OperatorEXXPW< std::complex< float >, base_device::DEVICE_CPU >::cal_density_recip ( const std::complex< float > * psi_nk_real,
const std::complex< float > * psi_mq_real,
double omega ) const
private
Here is the call graph for this function:

◆ cal_density_recip() [5/5]

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::cal_density_recip ( const T * psi_nk_real,
const T * psi_mq_real,
double omega ) const
private
Here is the caller graph for this function:

◆ cal_exx_energy()

template<typename T, typename Device>
double hamilt::OperatorEXXPW< T, Device >::cal_exx_energy ( psi::Psi< T, Device > * psi_) const
Here is the call graph for this function:

◆ cal_exx_energy_ace()

template<typename T, typename Device>
double hamilt::OperatorEXXPW< T, Device >::cal_exx_energy_ace ( psi::Psi< T, Device > * psi_) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_exx_energy_op()

template<typename T, typename Device>
double hamilt::OperatorEXXPW< T, Device >::cal_exx_energy_op ( psi::Psi< T, Device > * psi_) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calc_density_pw_nbatched()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::calc_density_pw_nbatched ( const int nbands,
const T * nk_real,
const T * psi_mq_real ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ construct_ace()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::construct_ace ( ) const
Here is the call graph for this function:

◆ ensure_exx_batch()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::ensure_exx_batch ( const int nbands) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ exx_band_chunk()

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::exx_band_chunk ( const int nbands) const
private
Here is the caller graph for this function:

◆ exx_grid_active()

template<typename T, typename Device>
bool hamilt::OperatorEXXPW< T, Device >::exx_grid_active ( ) const
private
Here is the caller graph for this function:

◆ exx_grid_size()

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::exx_grid_size ( ) const
inlineprivate
Here is the caller graph for this function:

◆ get_pw()

template<typename T, typename Device>
const T * hamilt::OperatorEXXPW< T, Device >::get_pw ( const int m,
const int iq ) const
private
Here is the caller graph for this function:

◆ get_q_points()

template<typename T, typename Device>
std::vector< int > hamilt::OperatorEXXPW< T, Device >::get_q_points ( const int ik) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ maybe_setup_exx_grid()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::maybe_setup_exx_grid ( ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ multiply_potential()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::multiply_potential ( T * density_recip,
int ik,
int iq ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pair_density()

template<typename T, typename Device>
const T * hamilt::OperatorEXXPW< T, Device >::pair_density ( const int n) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepare_pair_densities()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::prepare_pair_densities ( const int start,
const int count ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rho_recip2real() [1/5]

void hamilt::OperatorEXXPW< std::complex< double >, base_device::DEVICE_CPU >::rho_recip2real ( const std::complex< double > * rho_recip,
std::complex< double > * rho_real,
bool add,
double factor ) const
private
Here is the call graph for this function:

◆ rho_recip2real() [2/5]

void hamilt::OperatorEXXPW< std::complex< double >, base_device::DEVICE_CPU >::rho_recip2real ( const std::complex< double > * rho_recip,
std::complex< double > * rho_real,
bool add,
double factor ) const
private
Here is the call graph for this function:

◆ rho_recip2real() [3/5]

void hamilt::OperatorEXXPW< std::complex< float >, base_device::DEVICE_CPU >::rho_recip2real ( const std::complex< float > * rho_recip,
std::complex< float > * rho_real,
bool add,
float factor ) const
private
Here is the call graph for this function:

◆ rho_recip2real() [4/5]

void hamilt::OperatorEXXPW< std::complex< float >, base_device::DEVICE_CPU >::rho_recip2real ( const std::complex< float > * rho_recip,
std::complex< float > * rho_real,
bool add,
float factor ) const
private
Here is the call graph for this function:

◆ rho_recip2real() [5/5]

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::rho_recip2real ( const T * rho_recip,
T * rho_real,
bool add = false,
Real factor = 1.0 ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_psi()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::set_psi ( psi::Psi< T, Device > & psi_in) const
inline

◆ set_source()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::set_source ( std::unique_ptr< ModulePW::PW_Basis_K > source_basis,
std::unique_ptr< K_Vectors > source_points,
const psi::Psi< T, Device > & source_psi,
ModuleBase::matrix source_weights )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_wg()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::set_wg ( const ModuleBase::matrix * wg_in)
inline

◆ setup_exx_small_grid()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::setup_exx_small_grid ( ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_full_grid_maps()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::setup_full_grid_maps ( ) const
private
Here is the caller graph for this function:

◆ wfc_to_real_exx()

template<typename T, typename Device>
void hamilt::OperatorEXXPW< T, Device >::wfc_to_real_exx ( const T * psi_m,
const int iq,
const int psi_stride ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cnt

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::cnt = 0
mutableprivate

◆ coulomb_param

template<typename T, typename Device>
CoulombParam hamilt::OperatorEXXPW< T, Device >::coulomb_param

◆ cpu_ctx

template<typename T, typename Device>
base_device::DEVICE_CPU* hamilt::OperatorEXXPW< T, Device >::cpu_ctx = {}
private

◆ ctx

template<typename T, typename Device>
Device* hamilt::OperatorEXXPW< T, Device >::ctx = {}
private

◆ dens_box_batch

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::dens_box_batch = nullptr
mutableprivate

◆ dens_chunk_base

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::dens_chunk_base = 0
mutableprivate

◆ dens_pw_batch

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::dens_pw_batch = nullptr
mutableprivate

◆ density_real

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::density_real = nullptr
private

◆ density_recip

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::density_recip = nullptr
private

◆ device

template<typename T, typename Device>
base_device::AbacusDevice_t hamilt::OperatorEXXPW< T, Device >::device = {}
private

◆ ecut_exx_

template<typename T, typename Device>
double hamilt::OperatorEXXPW< T, Device >::ecut_exx_ = 0.0
private

◆ ecutexx_user_set_

template<typename T, typename Device>
bool hamilt::OperatorEXXPW< T, Device >::ecutexx_user_set_ = false
private

◆ erfc_div

template<typename T, typename Device>
std::vector<Real> hamilt::OperatorEXXPW< T, Device >::erfc_div
static

◆ exx_batch_alloc

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::exx_batch_alloc = 0
mutableprivate

◆ exx_batch_size_

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::exx_batch_size_ = 0
private

◆ exx_fft_plan

template<typename T, typename Device>
void* hamilt::OperatorEXXPW< T, Device >::exx_fft_plan = nullptr
mutableprivate

◆ exx_fft_plan1

template<typename T, typename Device>
void* hamilt::OperatorEXXPW< T, Device >::exx_fft_plan1 = nullptr
mutableprivate

◆ exx_fft_plan_nx

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::exx_fft_plan_nx = 0
mutableprivate

◆ exx_fft_plan_ny

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::exx_fft_plan_ny = 0
mutableprivate

◆ exx_fft_plan_nz

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::exx_fft_plan_nz = 0
mutableprivate

◆ exx_sg_init

template<typename T, typename Device>
bool hamilt::OperatorEXXPW< T, Device >::exx_sg_init = false
mutableprivate

◆ exx_sg_ok

template<typename T, typename Device>
bool hamilt::OperatorEXXPW< T, Device >::exx_sg_ok = false
mutableprivate

◆ exxace_

template<typename T, typename Device>
bool hamilt::OperatorEXXPW< T, Device >::exxace_ = false
private

◆ first_iter

template<typename T, typename Device>
bool hamilt::OperatorEXXPW< T, Device >::first_iter = true

◆ fock_div

template<typename T, typename Device>
std::vector<Real> hamilt::OperatorEXXPW< T, Device >::fock_div
static

◆ full_map_rho

template<typename T, typename Device>
int* hamilt::OperatorEXXPW< T, Device >::full_map_rho = nullptr
mutableprivate

◆ full_map_wfc

template<typename T, typename Device>
int* hamilt::OperatorEXXPW< T, Device >::full_map_wfc = nullptr
mutableprivate

◆ gamma_extrapolation

template<typename T, typename Device>
bool hamilt::OperatorEXXPW< T, Device >::gamma_extrapolation = true
private

◆ h_psi_ace

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::h_psi_ace = nullptr
mutableprivate

◆ h_psi_real

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::h_psi_real = nullptr
private

◆ h_psi_recip

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::h_psi_recip = nullptr
private

◆ hybrid_alpha

template<typename T, typename Device>
Real hamilt::OperatorEXXPW< T, Device >::hybrid_alpha = 0.0

◆ isk

template<typename T, typename Device>
const int* hamilt::OperatorEXXPW< T, Device >::isk = nullptr
private

◆ kv

template<typename T, typename Device>
K_Vectors* hamilt::OperatorEXXPW< T, Device >::kv = nullptr
private

◆ L_ace

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::L_ace = nullptr
mutableprivate

◆ my_pool_

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::my_pool_ = 0
private

◆ my_rank_

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::my_rank_ = 0
private

◆ nspin_

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::nspin_ = 1
private

◆ owned_source_basis_

template<typename T, typename Device>
std::unique_ptr<ModulePW::PW_Basis_K> hamilt::OperatorEXXPW< T, Device >::owned_source_basis_
private

◆ owned_source_points_

template<typename T, typename Device>
std::unique_ptr<K_Vectors> hamilt::OperatorEXXPW< T, Device >::owned_source_points_
private

◆ owned_source_weights_

template<typename T, typename Device>
ModuleBase::matrix hamilt::OperatorEXXPW< T, Device >::owned_source_weights_
private

◆ p_wg

template<typename T, typename Device>
const ModuleBase::matrix* hamilt::OperatorEXXPW< T, Device >::p_wg
private

◆ pot

template<typename T, typename Device>
Real* hamilt::OperatorEXXPW< T, Device >::pot = nullptr
private

◆ potential_got

template<typename T, typename Device>
bool hamilt::OperatorEXXPW< T, Device >::potential_got = false
mutableprivate

◆ psi

template<typename T, typename Device>
psi::Psi<T, Device> hamilt::OperatorEXXPW< T, Device >::psi
mutableprivate

◆ psi_h_psi_ace

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::psi_h_psi_ace = nullptr
mutableprivate

◆ psi_mq_real

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::psi_mq_real = nullptr
private

◆ psi_nk_cache_size

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::psi_nk_cache_size = 0
mutableprivate

◆ psi_nk_real

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::psi_nk_real = nullptr
private

◆ psi_nk_real_cache

template<typename T, typename Device>
T* hamilt::OperatorEXXPW< T, Device >::psi_nk_real_cache = nullptr
mutableprivate

◆ q_points

template<typename T, typename Device>
std::map<int, std::vector<int> > hamilt::OperatorEXXPW< T, Device >::q_points
mutableprivate

◆ rhopw

template<typename T, typename Device>
const ModulePW::PW_Basis* hamilt::OperatorEXXPW< T, Device >::rhopw = nullptr
private

◆ rhopw_dev

template<typename T, typename Device>
ModulePW::PW_Basis* hamilt::OperatorEXXPW< T, Device >::rhopw_dev = nullptr
private

◆ separate_loop

template<typename T, typename Device>
bool hamilt::OperatorEXXPW< T, Device >::separate_loop = false

◆ sg_map_rho

template<typename T, typename Device>
int* hamilt::OperatorEXXPW< T, Device >::sg_map_rho = nullptr
mutableprivate

◆ sg_map_wfc

template<typename T, typename Device>
int* hamilt::OperatorEXXPW< T, Device >::sg_map_wfc = nullptr
mutableprivate

◆ sg_nx

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::sg_nx = 0
mutableprivate

◆ sg_nxyz

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::sg_nxyz = 0
private

◆ sg_ny

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::sg_ny = 0
private

◆ sg_nz

template<typename T, typename Device>
int hamilt::OperatorEXXPW< T, Device >::sg_nz = 0
private

◆ source_basis_

template<typename T, typename Device>
const ModulePW::PW_Basis_K* hamilt::OperatorEXXPW< T, Device >::source_basis_ = nullptr
private

◆ source_points_

template<typename T, typename Device>
const K_Vectors* hamilt::OperatorEXXPW< T, Device >::source_points_ = nullptr
private

◆ tpiba

template<typename T, typename Device>
Real hamilt::OperatorEXXPW< T, Device >::tpiba = 0
private

◆ ucell

template<typename T, typename Device>
const UnitCell* hamilt::OperatorEXXPW< T, Device >::ucell = nullptr
private

◆ wfcpw

template<typename T, typename Device>
const ModulePW::PW_Basis_K* hamilt::OperatorEXXPW< T, Device >::wfcpw = nullptr
private

◆ wg

template<typename T, typename Device>
const ModuleBase::matrix* hamilt::OperatorEXXPW< T, Device >::wg
private

◆ Xi_ace_k

template<typename T, typename Device>
std::vector<T *> hamilt::OperatorEXXPW< T, Device >::Xi_ace_k
mutableprivate

The documentation for this class was generated from the following files: