11template <
typename T,
typename Device = base_device::DEVICE_CPU>
Special pw_basis class. It includes different k-points.
Definition pw_basis_k.h:57
psi::Psi< T, Device > * chiallorder
Definition sto_wf.h:39
std::vector< int > ngk
ngk in klist
Definition sto_wf.h:36
~Stochastic_WF()
Definition hsolver_supplementary_mock.h:108
void init_com_orbitals()
Definition sto_wf.cpp:166
void clean_chiallorder()
Definition sto_wf.cpp:60
psi::Psi< T, Device > * chiortho
Definition sto_wf.h:26
psi::Psi< T, Device > * chi0
Definition sto_wf.h:24
void init_sto_orbitals_Ecut(const int seed_in, const K_Vectors &kv, const ModulePW::PW_Basis_K &wfcpw, const int max_ecut)
Definition sto_wf.cpp:296
int nks
number of k-points
Definition sto_wf.h:32
void allocate_chi0()
Definition sto_wf.cpp:83
int npwx
max ngk[ik] in all processors
Definition sto_wf.h:33
int nchi
Total number of stochatic obitals.
Definition sto_wf.h:29
Stochastic_WF()
Definition hsolver_supplementary_mock.h:99
void sync_chi0()
Definition sto_wf.cpp:372
void update_sto_orbitals(const int seed_in)
Definition sto_wf.cpp:135
void init_sto_orbitals(const int seed_in)
Definition sto_wf.cpp:67
int nbands_diag
number of bands obtained from diagonalization
Definition sto_wf.h:34
int nbands_total
number of bands in total, nbands_total=nchi+nbands_diag;
Definition sto_wf.h:35
int * nchip
The number of stochatic orbitals in current process of each k point.
Definition sto_wf.h:30
psi::Psi< T, Device > * shchi
Definition sto_wf.h:28
psi::Psi< T, base_device::DEVICE_CPU > * chi0_cpu
Definition sto_wf.h:22
int nchip_max
Max number of stochastic orbitals among all k points.
Definition sto_wf.h:31
void init(K_Vectors *p_kv, const int npwx_in)
Definition hsolver_supplementary_mock.h:117
void allocate_chiallorder(const int &norder)
Definition sto_wf.cpp:49
Definition memory_op.h:31
Definition memory_op.h:45