|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <sto_hsolver_pw.h>
Public Member Functions | |
| StoHSolverPW (K_Vectors *pkv, ModulePW::PW_Basis_K *wfc_basis_in, Stochastic_WF< T, Device > &stowf, StoChe< Real, Device > &stoche, StoHamiltPW< T, Device > *p_hamilt_sto, const std::string calculation_type_in, const std::string basis_type_in, const std::string method_in, const bool use_uspp_in, const int nspin_in, const int scf_iter_in, const int diag_iter_max_in, const double diag_thr_in, const bool need_subspace_in, const int nbands_in, const bool diago_smooth_ethr_in, const int pw_diag_ndim_in, const std::string &lobpcg_locking_in, const int diag_subspace_in, const int nb2d_in, const bool ks_run_in, const bool all_ks_run_in, const int bndpar_in) | |
| void | solve (const UnitCell &ucell, hamilt::Hamilt< T, Device > *pHamilt, psi::Psi< T, Device > &psi, psi::Psi< T > &psi_cpu, elecstate::ElecState *pes, ModulePW::PW_Basis_K *wfc_basis, Stochastic_WF< T, Device > &stowf, const int istep, const int iter, std::ostream &log, const bool skip_charge) |
| Public Member Functions inherited from hsolver::HSolverPW< T, base_device::DEVICE_CPU > | |
| HSolverPW (ModulePW::PW_Basis_K *wfc_basis_in, const std::string calculation_type_in, const std::string basis_type_in, const std::string method_in, const bool use_uspp_in, const int nspin_in, const int scf_iter_in, const int diag_iter_max_in, const double diag_thr_in, const bool need_subspace_in, const int nbands_in, const bool diago_smooth_ethr_in, const int pw_diag_ndim_in, const std::string &lobpcg_locking_in, const int diag_subspace_in, const int nb2d_in, const bool use_k_continuity_in=false) | |
| void | solve (HSOperator< T, base_device::DEVICE_CPU > &op, psi::Psi< T, base_device::DEVICE_CPU > &psi, elecstate::ElecState *pes, double *out_eigenvalues, const int rank_in_pool_in, const int nproc_in_pool_in, std::ostream &log, const bool skip_charge) |
| solve function for pw | |
Public Attributes | |
| Stochastic_Iter< T, Device > | stoiter |
Protected Types | |
| using | Real = typename GetTypeReal<T>::type |
| using | setmem_complex_op = base_device::memory::set_memory_op<T, Device> |
| using | setmem_var_op = base_device::memory::set_memory_op<Real, Device> |
| using | syncmem_h2d_op = base_device::memory::synchronize_memory_op<T, Device, base_device::DEVICE_CPU> |
| using | syncmem_d2h_op = base_device::memory::synchronize_memory_op<T, base_device::DEVICE_CPU, Device> |
| using | syncmem_var_h2d_op = base_device::memory::synchronize_memory_op<Real, Device, base_device::DEVICE_CPU> |
| using | syncmem_var_d2h_op = base_device::memory::synchronize_memory_op<Real, base_device::DEVICE_CPU, Device> |
| Protected Types inherited from hsolver::HSolverPW< T, base_device::DEVICE_CPU > | |
| using | Real |
| using | resmem_complex_op |
| using | delmem_complex_op |
| using | setmem_complex_op |
Protected Attributes | |
| const bool | ks_run |
| const bool | all_ks_run |
| const int | bndpar |
| Protected Attributes inherited from hsolver::HSolverPW< T, base_device::DEVICE_CPU > | |
| ModulePW::PW_Basis_K * | wfc_basis |
| const std::string | calculation_type |
| const std::string | basis_type |
| const std::string | method |
| const bool | use_uspp |
| const int | nspin |
| const int | scf_iter |
| const int | diag_iter_max |
| const double | diag_thr |
| const bool | need_subspace |
| const int | nbands |
| const bool | diago_smooth_ethr |
| const int | pw_diag_ndim |
| const std::string | lobpcg_locking |
| const int | diag_subspace |
| const int | nb2d |
| const bool | use_k_continuity |
| base_device::DEVICE_CPU * | ctx |
| int | rank_in_pool |
| int | nproc_in_pool |
| std::vector< double > | ethr_band |
| dense::ParallelDenseEigensolver | rr_solver |
| dense::GpuDenseEigensolver | gpu_rr_solver |
Additional Inherited Members | |
| Protected Member Functions inherited from hsolver::HSolverPW< T, base_device::DEVICE_CPU > | |
| void | hamiltSolvePsiK (const HSOperator< T, base_device::DEVICE_CPU > &op, psi::Psi< T, base_device::DEVICE_CPU > &psi, std::vector< Real > &pre_condition, Real *eigenvalue, const int &nk_nums) |
| void | update_precondition (std::vector< Real > &h_diag, const int ik, const int npw, const Real vl_of_0) |
| void | output_iterInfo (std::ostream &log) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
| void StoHSolverPW< T, Device >::solve | ( | const UnitCell & | ucell, |
| hamilt::Hamilt< T, Device > * | pHamilt, | ||
| psi::Psi< T, Device > & | psi, | ||
| psi::Psi< T > & | psi_cpu, | ||
| elecstate::ElecState * | pes, | ||
| ModulePW::PW_Basis_K * | wfc_basis, | ||
| Stochastic_WF< T, Device > & | stowf, | ||
| const int | istep, | ||
| const int | iter, | ||
| std::ostream & | log, | ||
| const bool | skip_charge ) |
update psi pointer for each k point
template add precondition calculating here
solve eigenvector and eigenvalue for H(k)
|
protected |
|
protected |
|
protected |
| Stochastic_Iter<T, Device> StoHSolverPW< T, Device >::stoiter |