|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
PW-basis DeltaSpin computation path as free functions, decoupled from SpinConstrain. More...
Go to the source code of this file.
Namespaces | |
| namespace | psi |
| namespace | hamilt |
| namespace | elecstate |
| namespace | ModulePW |
| namespace | spinconstrain |
| namespace | spinconstrain::pw |
Functions | |
| void | spinconstrain::pw::cal_mi_pw (ScState &state, void *psi, elecstate::ElecState *pelec) |
| Calculate atomic magnetic moments using projector overlap (PW basis). | |
| void | spinconstrain::pw::calculate_delta_hcc (ScState &state, const SubspaceCache &cache, elecstate::ElecState *pelec, std::complex< double > *h_tmp, const std::complex< double > *becp_k, const ModuleBase::Vector3< double > *delta_lambda, const int nbands, const int nkb, const int *nh_iat, const int ik, const bool full_update) |
| Compute DeltaSpin correction to a subspace Hamiltonian. | |
| void | spinconstrain::pw::update_psi_charge_pw_cpu (ScState &state, SubspaceCache &cache, void *psi, void *p_hamilt, elecstate::ElecState *pelec, ModulePW::PW_Basis_K *pw_wfc, const ModuleBase::Vector3< double > *delta_lambda, bool pw_solve, bool full_update) |
| CPU implementation of PW wavefunction and charge density update. | |
PW-basis DeltaSpin computation path as free functions, decoupled from SpinConstrain.
The PW path is always instantiated on complex wavefunctions (psi::Psi<std::complex<double>>), so these functions are not templated on TK.