ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
prop_etrs_pw.h
Go to the documentation of this file.
1#ifndef PW_PROP_ETRS_PW_H
2#define PW_PROP_ETRS_PW_H
6
7namespace pw
8{
9template <typename T, typename Device>
10class ETRSPropPW final : public PWProp<T, Device>
11{
12 private:
14 std::unique_ptr<hsolver::ExpAction<T, Device>> exponential_;
16 const int npol_;
17 const std::vector<int> global_k_;
18 std::ostream& log_;
19 bool half_ready_ = false;
20 unsigned long long left_gen_ = 0;
21 void report(const hsolver::ExpResult& result, int ik, int elec_step, int scf_iter, bool log_detail) const;
22
23 public:
24 ETRSPropPW(const hsolver::ExpControls& exp_ctrl,
25 int npol,
26 const std::vector<int>& global_k,
27 const hsolver::diag_comm_info& comm,
28 std::ostream& log);
29 void begin_trial() override;
30 void discard_trial() override;
31 void invalidate_basis() override;
33 const TDHistoryPW<T, Device>& history,
34 elecstate::Potential& potential,
35 const elecstate::TDFieldManager& field,
36 psi::Psi<T, Device>* current,
37 int elec_step,
38 int scf_iter,
39 bool log_detail) override;
40};
41} // namespace pw
42#endif
A multi-dimensional array of elements of a single data type.
Definition tensor.h:32
Definition potential_new.h:58
Own and advance all time-dependent electric fields in RT-TDDFT.
Definition td_field_manager.h:36
Definition psi.h:37
std::ostream & log_
Definition prop_etrs_pw.h:18
void discard_trial() override
Definition prop_etrs_pw.cpp:39
bool half_ready_
Definition prop_etrs_pw.h:19
std::unique_ptr< hsolver::ExpAction< T, Device > > exponential_
Definition prop_etrs_pw.h:14
void evolve(TDHamiltPW< T, Device > &hamilt, const TDHistoryPW< T, Device > &history, elecstate::Potential &potential, const elecstate::TDFieldManager &field, psi::Psi< T, Device > *current, int elec_step, int scf_iter, bool log_detail) override
Definition prop_etrs_pw.cpp:85
void invalidate_basis() override
Definition prop_etrs_pw.cpp:45
const std::vector< int > global_k_
Definition prop_etrs_pw.h:17
void begin_trial() override
Definition prop_etrs_pw.cpp:33
unsigned long long left_gen_
Definition prop_etrs_pw.h:20
void report(const hsolver::ExpResult &result, int ik, int elec_step, int scf_iter, bool log_detail) const
Definition prop_etrs_pw.cpp:51
const hsolver::diag_comm_info pool_comm_
Definition prop_etrs_pw.h:13
ETRSPropPW(const hsolver::ExpControls &exp_ctrl, int npol, const std::vector< int > &global_k, const hsolver::diag_comm_info &comm, std::ostream &log)
Definition prop_etrs_pw.cpp:12
const int npol_
Definition prop_etrs_pw.h:16
ct::Tensor half_psi_
Definition prop_etrs_pw.h:15
Method-specific wavefunction map; density and acceptance stay above it.
Definition td_prop_pw.h:20
A call-scoped PW sample; every k update refreshes shifted projectors.
Definition td_hamilt_pw.h:11
Accepted endpoint wavefunctions and potential snapshots.
Definition td_history_pw.h:33
Definition wf_op.cpp:6
Definition deltaspin_pw.cpp:7
Explicit controls for a frozen Hermitian Hamiltonian exponential.
Definition exp_action.h:20
Error is relative to the input norm and only estimated by Lanczos.
Definition exp_action.h:37
Definition diag_comm_info.h:12