ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
pw::TDHistoryPW< T, Device > Class Template Reference

Accepted endpoint wavefunctions and potential snapshots. More...

#include <td_history_pw.h>

Collaboration diagram for pw::TDHistoryPW< T, Device >:

Public Member Functions

void prepare (const elecstate::Potential &potential)
 Prepare storage after the potential grids have been updated.
const GetTypeReal< T >::type * left_potential () const
 Borrow the immutable accepted left-endpoint potential.
unsigned long long generation () const
void save (const psi::Psi< T, Device > &current, elecstate::Potential &potential)
 Save the accepted endpoint; the caller owns the convergence decision.
const psi::Psi< T, Device > & previous () const
 Access the fixed origin of every corrector solve in the next step.

Private Types

using Real = typename GetTypeReal<T>::type

Private Attributes

std::unique_ptr< psi::Psi< T, Device > > previous_
ct::Tensor veff_prev_
unsigned long long generation_ = 0

Detailed Description

template<typename T, typename Device>
class pw::TDHistoryPW< T, Device >

Accepted endpoint wavefunctions and potential snapshots.

Member Typedef Documentation

◆ Real

template<typename T, typename Device>
using pw::TDHistoryPW< T, Device >::Real = typename GetTypeReal<T>::type
private

Member Function Documentation

◆ generation()

template<typename T, typename Device>
unsigned long long pw::TDHistoryPW< T, Device >::generation ( ) const
inline
Here is the caller graph for this function:

◆ left_potential()

template<typename T, typename Device>
const GetTypeReal< T >::type * pw::TDHistoryPW< T, Device >::left_potential ( ) const

Borrow the immutable accepted left-endpoint potential.

Here is the caller graph for this function:

◆ prepare()

template<typename T, typename Device>
void pw::TDHistoryPW< T, Device >::prepare ( const elecstate::Potential & potential)

Prepare storage after the potential grids have been updated.

Here is the call graph for this function:

◆ previous()

template<typename T, typename Device>
const psi::Psi< T, Device > & pw::TDHistoryPW< T, Device >::previous ( ) const

Access the fixed origin of every corrector solve in the next step.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ save()

template<typename T, typename Device>
void pw::TDHistoryPW< T, Device >::save ( const psi::Psi< T, Device > & current,
elecstate::Potential & potential )

Save the accepted endpoint; the caller owns the convergence decision.

Here is the call graph for this function:

Member Data Documentation

◆ generation_

template<typename T, typename Device>
unsigned long long pw::TDHistoryPW< T, Device >::generation_ = 0
private

◆ previous_

template<typename T, typename Device>
std::unique_ptr<psi::Psi<T, Device> > pw::TDHistoryPW< T, Device >::previous_
private

◆ veff_prev_

template<typename T, typename Device>
ct::Tensor pw::TDHistoryPW< T, Device >::veff_prev_
private

The documentation for this class was generated from the following files: