ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
TestHSolverPW Class Reference
Inheritance diagram for TestHSolverPW:
Collaboration diagram for TestHSolverPW:

Public Types

using Assist = hsolver::DiagoIterAssist<std::complex<double>, base_device::DEVICE_CPU>

Public Member Functions

void SetUp () override
void run_lobpcg_entry (const int dim, const int block, const int backend)
void run_lobpcg_case (const std::string &calculation, const bool dependent)

Static Public Member Functions

template<typename T, typename Device>
static void hamiltSolvePsiK (hsolver::HSolverPW< T, Device > &hs, const hsolver::HSOperator< T, Device > &op, psi::Psi< T, Device > &ps, std::vector< typename GetTypeReal< T >::type > &pre, typename GetTypeReal< T >::type *eig, const int ntry)

Public Attributes

ModulePW::PW_Basis_K pwbk
hsolver::HSolverPW< std::complex< float >, base_device::DEVICE_CPU > hs_f
hsolver::HSolverPW< std::complex< double >, base_device::DEVICE_CPU > hs_d
IdentityHSOperator< std::complex< double > > hamilt_test_d
IdentityHSOperator< std::complex< float > > hamilt_test_f
psi::Psi< std::complex< double > > psi_test_cd
psi::Psi< std::complex< float > > psi_test_cf
elecstate::ElecState elecstate_test
std::string method_test = "cg"
std::vector< float > ekb_f
std::ofstream temp_ofs

Member Typedef Documentation

◆ Assist

using TestHSolverPW::Assist = hsolver::DiagoIterAssist<std::complex<double>, base_device::DEVICE_CPU>

Member Function Documentation

◆ hamiltSolvePsiK()

template<typename T, typename Device>
void TestHSolverPW::hamiltSolvePsiK ( hsolver::HSolverPW< T, Device > & hs,
const hsolver::HSOperator< T, Device > & op,
psi::Psi< T, Device > & ps,
std::vector< typename GetTypeReal< T >::type > & pre,
typename GetTypeReal< T >::type * eig,
const int ntry )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_lobpcg_case()

void TestHSolverPW::run_lobpcg_case ( const std::string & calculation,
const bool dependent )
inline
Here is the call graph for this function:

◆ run_lobpcg_entry()

void TestHSolverPW::run_lobpcg_entry ( const int dim,
const int block,
const int backend )
inline
Here is the call graph for this function:

◆ SetUp()

void TestHSolverPW::SetUp ( )
inlineoverride

Member Data Documentation

◆ ekb_f

std::vector<float> TestHSolverPW::ekb_f

◆ elecstate_test

elecstate::ElecState TestHSolverPW::elecstate_test

◆ hamilt_test_d

IdentityHSOperator<std::complex<double> > TestHSolverPW::hamilt_test_d

◆ hamilt_test_f

IdentityHSOperator<std::complex<float> > TestHSolverPW::hamilt_test_f

◆ hs_d

hsolver::HSolverPW<std::complex<double>, base_device::DEVICE_CPU> TestHSolverPW::hs_d
Initial value:
{
&pwbk, "scf", "pw", "cg", false, 1, Assist::SCF_ITER, Assist::PW_DIAG_NMAX,
Assist::PW_DIAG_THR, Assist::need_subspace, 0, false, 4, "hard", 0, 0}
ModulePW::PW_Basis_K pwbk
Definition test_hsolver_pw.cpp:219

◆ hs_f

hsolver::HSolverPW<std::complex<float>, base_device::DEVICE_CPU> TestHSolverPW::hs_f
Initial value:
{
&pwbk, "scf", "pw", "cg", false, 1, Assist::SCF_ITER, Assist::PW_DIAG_NMAX,
Assist::PW_DIAG_THR, Assist::need_subspace, 0, false, 4, "hard", 0, 0}

◆ method_test

std::string TestHSolverPW::method_test = "cg"

◆ psi_test_cd

psi::Psi<std::complex<double> > TestHSolverPW::psi_test_cd

◆ psi_test_cf

psi::Psi<std::complex<float> > TestHSolverPW::psi_test_cf

◆ pwbk

ModulePW::PW_Basis_K TestHSolverPW::pwbk

◆ temp_ofs

std::ofstream TestHSolverPW::temp_ofs

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