ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
psi::PSIPrepareBase Class Referenceabstract

Base class for PSIPrepare without template parameters. More...

#include <psi_prepare_base.h>

Inheritance diagram for psi::PSIPrepareBase:
Collaboration diagram for psi::PSIPrepareBase:

Public Member Functions

 PSIPrepareBase ()=default
virtual ~PSIPrepareBase ()=default
virtual void prepare_init (const int &random_seed, const int istep)=0
 prepare the wavefunction initialization

Detailed Description

Base class for PSIPrepare without template parameters.

This class provides a non-template base class for PSIPrepare<T, Device>, allowing Setup_Psi_pw to store a base class pointer instead of a template pointer. This is part of the gradual refactoring to remove template parameters from Setup_Psi_pw.

Constructor & Destructor Documentation

◆ PSIPrepareBase()

psi::PSIPrepareBase::PSIPrepareBase ( )
default

◆ ~PSIPrepareBase()

virtual psi::PSIPrepareBase::~PSIPrepareBase ( )
virtualdefault

Member Function Documentation

◆ prepare_init()

virtual void psi::PSIPrepareBase::prepare_init ( const int & random_seed,
const int istep )
pure virtual

prepare the wavefunction initialization

Parameters
random_seedseed for random initialization
istepcurrent ion/relax step; used to suppress repeated informational warnings (only printed on the first step)

Implemented in psi::PSIPrepare< T, Device >.


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