#include <psi_prepare.h>
|
| | PSIPrepare (const std::string &init_wfc_in, const std::string &ks_solver_in, const std::string &basis_type_in, const int &rank, const UnitCell &ucell, const Structure_Factor &sf, const std::vector< int > &ik2iktot, const int &nkstot, const int &lmaxkb, const ModulePW::PW_Basis_K &pw_wfc) |
| | ~PSIPrepare () |
| void | prepare_init (const int &random_seed, const int istep) |
| | prepare the wavefunction initialization
|
| void | initialize_psi (Psi< std::complex< double > > *psi, psi::Psi< T, Device > *kspw_psi, hamilt::Hamilt< T, Device > *p_hamilt, std::ofstream &ofs_running) |
| | initialize the wavefunction
|
| void | initialize_lcao_in_pw (Psi< T > *psi_local, std::ofstream &ofs_running) |
| | initialize NAOs in plane wave basis, only for LCAO_IN_PW
|
| | PSIPrepareBase ()=default |
| virtual | ~PSIPrepareBase ()=default |
◆ syncmem_complex_op
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ syncmem_h2d_op
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ PSIPrepare()
template<typename
T, typename Device>
| psi::PSIPrepare< T, Device >::PSIPrepare |
( |
const std::string & | init_wfc_in, |
|
|
const std::string & | ks_solver_in, |
|
|
const std::string & | basis_type_in, |
|
|
const int & | rank, |
|
|
const UnitCell & | ucell, |
|
|
const Structure_Factor & | sf, |
|
|
const std::vector< int > & | ik2iktot, |
|
|
const int & | nkstot, |
|
|
const int & | lmaxkb, |
|
|
const ModulePW::PW_Basis_K & | pw_wfc ) |
◆ ~PSIPrepare()
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ initialize_lcao_in_pw()
template<typename
T, typename Device>
| void psi::PSIPrepare< T, Device >::initialize_lcao_in_pw |
( |
Psi< T > * | psi_local, |
|
|
std::ofstream & | ofs_running ) |
initialize NAOs in plane wave basis, only for LCAO_IN_PW
◆ initialize_psi()
template<typename
T, typename Device>
initialize the wavefunction
- Parameters
-
| psi | store the wavefunction |
| kspw_psi | Kohn-Sham wavefunction in plane-wave basis |
| p_hamilt | Hamiltonian operator |
| ofs_running | output stream for running information |
Fix the wavefunction to initialize at given kpoint
Update Hamiltonian from other kpoint to the given one
initialize psi_cpu
◆ prepare_init()
template<typename
T, typename Device>
| void psi::PSIPrepare< T, Device >::prepare_init |
( |
const int & | random_seed, |
|
|
const int | istep ) |
|
virtual |
prepare the wavefunction initialization
- Parameters
-
| random_seed | seed for random initialization |
| istep | current ion/relax step; informational warnings are only printed on the first step to avoid spamming relax output |
Implements psi::PSIPrepareBase.
◆ basis_type
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ cpu_ctx
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ ctx
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ ik2iktot_
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ init_wfc
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ ks_solver
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ lmaxkb
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ nkstot_
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ psi_initer
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ pw_wfc
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ rank
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ sf
template<typename
T, typename Device = base_device::DEVICE_CPU>
◆ ucell
template<typename
T, typename Device = base_device::DEVICE_CPU>
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_psi/psi_prepare.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_psi/psi_prepare.cpp