|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <td_orbital_ops.h>
Public Member Functions | |
| TDOrbOps (int npol, OrthMethod orth_method, bool out_stat, const std::vector< int > &global_k, const diag_comm_info &comm, std::ostream &log) | |
| Configure common orbital processing independently of a propagator. | |
| void | correct (psi::Psi< T, Device > *current, int step, int iter, bool detailed_output) |
| Apply common postprocessing to a completed predictor or corrector. | |
| void | reset_orth_stats () |
| Reset diagnostics without invalidating preconditioner history. | |
| void | set_orth_stats (const TDOrthStats &stats) |
| Publish diagnostics accumulated over accepted trial intervals only. | |
| void | zero_padding (psi::Psi< T, Device > *current) |
| Clear spinor padding without changing physical coefficients or the k-point cursor; no communication. | |
| bool | orth_initial (psi::Psi< T, Device > *current, int iter) |
| Orthogonalize initial orbitals with clean padding; return whether this pool changed any physical orbital. | |
| void | check_initial (const psi::Psi< T, Device > ¤t, int iter) |
| Check the converged initial state once; finite orthogonality errors are diagnostic only. | |
| double | wave_electrons (const ModuleBase::matrix &occupations) const |
| Occupation-weighted electron count for the local k-point pool. | |
| const TDOrthStats & | orth_stats () const |
| void | cal_band_energy (HSOperator< T, Device > &op, const psi::Psi< T, Device > ¤t, ModuleBase::matrix *energies) |
| Evaluate band expectations after the caller restores the endpoint Hamiltonian. | |
| std::vector< std::complex< double > > | cal_eij (HSOperator< T, Device > &op, const psi::Psi< T, Device > ¤t, const int ik) |
| Return the pool-reduced, column-major Psi-adjoint H Psi for one local k point. | |
Private Member Functions | |
| void | prepare_buffers (int nbands, int nbasis) |
| void | correct_orbitals (T *current, int ld, int dim, int bands, int ik, int istep, int iter, bool detailed_output) |
| void | record_orth (const OrthResult &result, int ik, int istep, int iter) |
| void | report_orth_warning (const OrthResult &result, int ik, int istep, int iter) |
Private Attributes | |
| const diag_comm_info | comm_ |
| const int | npol_ |
| const OrthMethod | orth_method_ |
| const bool | out_stat_ |
| const std::vector< int > | global_k_ |
| ct::Tensor | clean_ |
| ct::Tensor | hpsi_ |
| LinearAlgebra< T, Device > | algebra_ |
| Orthonormal< T, Device > | orthonormal_ |
| TDOrthStats | orth_stats_ |
| std::vector< std::vector< double > > | orth_norms_ |
| std::ostream & | log_ |
| unsigned int | warned_events_ = 0 |
| LinearWorkspace< T, Device > | band_products_ |
| hsolver::TDOrbOps< T, Device >::TDOrbOps | ( | int | npol, |
| OrthMethod | orth_method, | ||
| bool | out_stat, | ||
| const std::vector< int > & | global_k, | ||
| const diag_comm_info & | comm, | ||
| std::ostream & | log ) |
Configure common orbital processing independently of a propagator.
| void hsolver::TDOrbOps< T, Device >::cal_band_energy | ( | HSOperator< T, Device > & | op, |
| const psi::Psi< T, Device > & | current, | ||
| ModuleBase::matrix * | energies ) |
Evaluate band expectations after the caller restores the endpoint Hamiltonian.
| std::vector< std::complex< double > > hsolver::TDOrbOps< T, Device >::cal_eij | ( | HSOperator< T, Device > & | op, |
| const psi::Psi< T, Device > & | current, | ||
| const int | ik ) |
Return the pool-reduced, column-major Psi-adjoint H Psi for one local k point.
| void hsolver::TDOrbOps< T, Device >::check_initial | ( | const psi::Psi< T, Device > & | current, |
| int | iter ) |
Check the converged initial state once; finite orthogonality errors are diagnostic only.
| void hsolver::TDOrbOps< T, Device >::correct | ( | psi::Psi< T, Device > * | current, |
| int | step, | ||
| int | iter, | ||
| bool | detailed_output ) |
Apply common postprocessing to a completed predictor or corrector.
|
private |
| bool hsolver::TDOrbOps< T, Device >::orth_initial | ( | psi::Psi< T, Device > * | current, |
| int | iter ) |
Orthogonalize initial orbitals with clean padding; return whether this pool changed any physical orbital.
|
inline |
|
private |
|
private |
|
private |
| void hsolver::TDOrbOps< T, Device >::reset_orth_stats | ( | ) |
Reset diagnostics without invalidating preconditioner history.
|
inline |
Publish diagnostics accumulated over accepted trial intervals only.
| double hsolver::TDOrbOps< T, Device >::wave_electrons | ( | const ModuleBase::matrix & | occupations | ) | const |
Occupation-weighted electron count for the local k-point pool.
| void hsolver::TDOrbOps< T, Device >::zero_padding | ( | psi::Psi< T, Device > * | current | ) |
Clear spinor padding without changing physical coefficients or the k-point cursor; no communication.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |