ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
test_hsolver_pw.cpp File Reference
#include <gtest/gtest.h>
#include <iostream>
#include <sstream>
#include <vector>
#include "hsolver_pw_sup.h"
#include "hsolver_supplementary_mock.h"
#include "source_hsolver/diag_comm_info.h"
#include "source_base/parallel_global.h"
#include "source_hsolver/hs_operator.h"
#include "source_hsolver/hsolver_lcaopw.h"
#include "source_hsolver/hsolver_pw.h"
#include "source_hsolver/diago_params.h"
#include "source_hsolver/diago_lobpcg.h"
#include <algorithm>
#include <complex>
#include <cmath>
#include <cstdlib>
Include dependency graph for test_hsolver_pw.cpp:

Classes

class  IdentityHSOperator< T >
 H = S = identity: the simplest operator the solvers can be handed. More...
class  TestHSolverPW

Namespaces

namespace  ModulePW
namespace  hsolver

Functions

template void ModulePW::PW_Basis_K::recip_to_real< float, base_device::DEVICE_CPU > (const base_device::DEVICE_CPU *ctx, const std::complex< float > *in, std::complex< float > *out, const int ik, const bool add, const float factor) const
template void ModulePW::PW_Basis_K::recip_to_real< double, base_device::DEVICE_CPU > (const base_device::DEVICE_CPU *ctx, const std::complex< double > *in, std::complex< double > *out, const int ik, const bool add, const double factor) const
template void ModulePW::PW_Basis_K::real_to_recip< float, base_device::DEVICE_CPU > (const base_device::DEVICE_CPU *ctx, const std::complex< float > *in, std::complex< float > *out, const int ik, const bool add, const float factor) const
template void ModulePW::PW_Basis_K::real_to_recip< double, base_device::DEVICE_CPU > (const base_device::DEVICE_CPU *ctx, const std::complex< double > *in, std::complex< double > *out, const int ik, const bool add, const double factor) const
template<typename T>
void hsolver::diago_hs_para (T *h, T *s, const int lda, const int nband, typename GetTypeReal< T >::type *const ekb, T *const wfc, const MPI_Comm &comm, const int diag_subspace, const int block_size=0)
 Parallel do the generalized eigenvalue problem.
template void hsolver::diago_hs_para< double > (double *h, double *s, const int lda, const int nband, typename GetTypeReal< double >::type *const ekb, double *const wfc, const MPI_Comm &comm, const int diag_subspace, const int block_size)
template void hsolver::diago_hs_para< std::complex< double > > (std::complex< double > *h, std::complex< double > *s, const int lda, const int nband, typename GetTypeReal< std::complex< double > >::type *const ekb, std::complex< double > *const wfc, const MPI_Comm &comm, const int diag_subspace, const int block_size)
template void hsolver::diago_hs_para< float > (float *h, float *s, const int lda, const int nband, typename GetTypeReal< float >::type *const ekb, float *const wfc, const MPI_Comm &comm, const int diag_subspace, const int block_size)
template void hsolver::diago_hs_para< std::complex< float > > (std::complex< float > *h, std::complex< float > *s, const int lda, const int nband, typename GetTypeReal< std::complex< float > >::type *const ekb, std::complex< float > *const wfc, const MPI_Comm &comm, const int diag_subspace, const int block_size)
 TEST_F (TestHSolverPW, SolveLcaoInPW)
 TEST_F (TestHSolverPW, NpwxLessThanNbandsDeath)
 TEST_F (TestHSolverPW, LobpcgBlockMustContainRequestedBands)
 TEST_F (TestHSolverPW, LobpcgNeedsFullRankSearchSpace)
 TEST_F (TestHSolverPW, LobpcgRejectsUnsupportedBackend)
 TEST_F (TestHSolverPW, LobpcgNscfBudgetReportsError)
 TEST_F (TestHSolverPW, LobpcgBudgetContinuesOuterLoops)
 TEST_F (TestHSolverPW, LobpcgNumericalFailureReportsBackendInfo)
 TEST_F (TestHSolverPW, PwUsesInputIterationBudget)

Function Documentation

◆ TEST_F() [1/9]

TEST_F ( TestHSolverPW ,
LobpcgBlockMustContainRequestedBands  )

◆ TEST_F() [2/9]

TEST_F ( TestHSolverPW ,
LobpcgBudgetContinuesOuterLoops  )

◆ TEST_F() [3/9]

TEST_F ( TestHSolverPW ,
LobpcgNeedsFullRankSearchSpace  )

◆ TEST_F() [4/9]

TEST_F ( TestHSolverPW ,
LobpcgNscfBudgetReportsError  )

◆ TEST_F() [5/9]

TEST_F ( TestHSolverPW ,
LobpcgNumericalFailureReportsBackendInfo  )

◆ TEST_F() [6/9]

TEST_F ( TestHSolverPW ,
LobpcgRejectsUnsupportedBackend  )

◆ TEST_F() [7/9]

TEST_F ( TestHSolverPW ,
NpwxLessThanNbandsDeath  )

◆ TEST_F() [8/9]

TEST_F ( TestHSolverPW ,
PwUsesInputIterationBudget  )
Here is the call graph for this function:

◆ TEST_F() [9/9]

TEST_F ( TestHSolverPW ,
SolveLcaoInPW  )
Here is the call graph for this function: