ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
test_deepks< T > Class Template Reference

#include <deepks_test.h>

Collaboration diagram for test_deepks< T >:

Public Types

using TH = std::conditional_t<std::is_same<T, double>::value, ModuleBase::matrix, ModuleBase::ComplexMatrix>

Public Member Functions

 test_deepks ()
 ~test_deepks ()
void preparation (bool use_modern_orbital_reader)
void set_parameters ()
void setup_cell ()
void count_ntype ()
void set_ekcut ()
void prep_neighbour ()
void setup_kpt ()
void set_orbs (bool use_modern_orbital_reader)
void set_dm_new ()
void set_p_elec_DM ()
void check_dstable ()
void check_phialpha ()
void check_phialpha_grid_zero_field ()
void read_dm (const int nks)
void check_pdm ()
void check_descriptor (std::vector< torch::Tensor > &descriptor)
void check_gdmx (torch::Tensor &gdmx)
void check_gdmepsl (torch::Tensor &gdmepsl)
void check_gvx (torch::Tensor &gdmx)
void check_gvepsl (torch::Tensor &gdmepsl)
void check_orbpre ()
void check_vdpre ()
void check_vdrpre ()
void check_edelta (std::vector< torch::Tensor > &descriptor)
void cal_V_delta ()
void check_e_deltabands ()
void check_f_delta_and_stress_delta ()
void check_o_delta ()
void assert_file_matches_reference (const std::string &actual_file, const std::string &reference_file)

Public Attributes

LCAO_Orbitals ORB
RadialCollection orb_
RadialCollection alpha_
TwoCenterIntegrator overlap_orb_alpha_
UnitCell ucell
Parallel_Orbitals ParaO
K_Vectors kv
LCAO_Deepks< T > ld
int my_rank = 0
double lcao_ecut = 0
double lcao_dk = 0.01
double lcao_dr = 0.01
double lcao_rmax = 30
int out_mat_r = 0
int lmax = 2
int ntype = 0
int nlocal = 0
int nbands = 0
int npol = 1
int nspin = 1
bool gamma_only_local = false
bool cal_force = true
bool deepks_setorb = true
bool test_atom_input = false
bool search_pbc = true
bool out_element_info = false
std::string orbital_dir = ""
std::string out_level = "ie"
std::vector< TH > dm
std::vector< std::vector< T > > dm_new
module_dm::DensityMatrix< T, double > * p_elec_DM = nullptr

Member Typedef Documentation

◆ TH

template<typename T>
using test_deepks< T >::TH = std::conditional_t<std::is_same<T, double>::value, ModuleBase::matrix, ModuleBase::ComplexMatrix>

Constructor & Destructor Documentation

◆ test_deepks()

template<typename T>
test_deepks< T >::test_deepks ( )

◆ ~test_deepks()

template<typename T>
test_deepks< T >::~test_deepks ( )

Member Function Documentation

◆ assert_file_matches_reference()

template<typename T>
void test_deepks< T >::assert_file_matches_reference ( const std::string & actual_file,
const std::string & reference_file )
Here is the caller graph for this function:

◆ cal_V_delta()

template<typename T>
template void test_deepks< T >::cal_V_delta ( )
Here is the caller graph for this function:

◆ check_descriptor()

template<typename T>
template void test_deepks< T >::check_descriptor ( std::vector< torch::Tensor > & descriptor)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_dstable()

template<typename T>
void test_deepks< T >::check_dstable ( )

◆ check_e_deltabands()

template<typename T>
template void test_deepks< T >::check_e_deltabands ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_edelta()

template<typename T>
template void test_deepks< T >::check_edelta ( std::vector< torch::Tensor > & descriptor)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_f_delta_and_stress_delta()

template<typename T>
template void test_deepks< T >::check_f_delta_and_stress_delta ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_gdmepsl()

template<typename T>
template void test_deepks< T >::check_gdmepsl ( torch::Tensor & gdmepsl)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_gdmx()

template<typename T>
template void test_deepks< T >::check_gdmx ( torch::Tensor & gdmx)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_gvepsl()

template<typename T>
template void test_deepks< T >::check_gvepsl ( torch::Tensor & gdmepsl)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_gvx()

template<typename T>
template void test_deepks< T >::check_gvx ( torch::Tensor & gdmx)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_o_delta()

template<typename T>
template void test_deepks< T >::check_o_delta ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_orbpre()

template<typename T>
template void test_deepks< T >::check_orbpre ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_pdm()

template<typename T>
template void test_deepks< T >::check_pdm ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_phialpha()

template<typename T>
template void test_deepks< T >::check_phialpha ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_phialpha_grid_zero_field()

template<typename T>
template void test_deepks< T >::check_phialpha_grid_zero_field ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_vdpre()

template<typename T>
template void test_deepks< T >::check_vdpre ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_vdrpre()

template<typename T>
template void test_deepks< T >::check_vdrpre ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ count_ntype()

template<typename T>
void test_deepks< T >::count_ntype ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ prep_neighbour()

template<typename T>
void test_deepks< T >::prep_neighbour ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ preparation()

template<typename T>
void test_deepks< T >::preparation ( bool use_modern_orbital_reader)
Here is the call graph for this function:

◆ read_dm()

template<typename T>
template void test_deepks< T >::read_dm ( const int nks)
Here is the caller graph for this function:

◆ set_dm_new()

template<typename T>
template void test_deepks< T >::set_dm_new ( )
Here is the caller graph for this function:

◆ set_ekcut()

template<typename T>
void test_deepks< T >::set_ekcut ( )
Here is the caller graph for this function:

◆ set_orbs()

template<typename T>
void test_deepks< T >::set_orbs ( bool use_modern_orbital_reader)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_p_elec_DM()

template<typename T>
template void test_deepks< T >::set_p_elec_DM ( )
Here is the caller graph for this function:

◆ set_parameters()

template<typename T>
void test_deepks< T >::set_parameters ( )
Here is the caller graph for this function:

◆ setup_cell()

template<typename T>
void test_deepks< T >::setup_cell ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_kpt()

template<typename T>
void test_deepks< T >::setup_kpt ( )
Here is the caller graph for this function:

Member Data Documentation

◆ alpha_

template<typename T>
RadialCollection test_deepks< T >::alpha_

◆ cal_force

template<typename T>
bool test_deepks< T >::cal_force = true

◆ deepks_setorb

template<typename T>
bool test_deepks< T >::deepks_setorb = true

◆ dm

template<typename T>
std::vector<TH> test_deepks< T >::dm

◆ dm_new

template<typename T>
std::vector<std::vector<T> > test_deepks< T >::dm_new

◆ gamma_only_local

template<typename T>
bool test_deepks< T >::gamma_only_local = false

◆ kv

template<typename T>
K_Vectors test_deepks< T >::kv

◆ lcao_dk

template<typename T>
double test_deepks< T >::lcao_dk = 0.01

◆ lcao_dr

template<typename T>
double test_deepks< T >::lcao_dr = 0.01

◆ lcao_ecut

template<typename T>
double test_deepks< T >::lcao_ecut = 0

◆ lcao_rmax

template<typename T>
double test_deepks< T >::lcao_rmax = 30

◆ ld

template<typename T>
LCAO_Deepks<T> test_deepks< T >::ld

◆ lmax

template<typename T>
int test_deepks< T >::lmax = 2

◆ my_rank

template<typename T>
int test_deepks< T >::my_rank = 0

◆ nbands

template<typename T>
int test_deepks< T >::nbands = 0

◆ nlocal

template<typename T>
int test_deepks< T >::nlocal = 0

◆ npol

template<typename T>
int test_deepks< T >::npol = 1

◆ nspin

template<typename T>
int test_deepks< T >::nspin = 1

◆ ntype

template<typename T>
int test_deepks< T >::ntype = 0

◆ ORB

template<typename T>
LCAO_Orbitals test_deepks< T >::ORB

◆ orb_

template<typename T>
RadialCollection test_deepks< T >::orb_

◆ orbital_dir

template<typename T>
std::string test_deepks< T >::orbital_dir = ""

◆ out_element_info

template<typename T>
bool test_deepks< T >::out_element_info = false

◆ out_level

template<typename T>
std::string test_deepks< T >::out_level = "ie"

◆ out_mat_r

template<typename T>
int test_deepks< T >::out_mat_r = 0

◆ overlap_orb_alpha_

template<typename T>
TwoCenterIntegrator test_deepks< T >::overlap_orb_alpha_

◆ p_elec_DM

template<typename T>
module_dm::DensityMatrix<T, double>* test_deepks< T >::p_elec_DM = nullptr

◆ ParaO

template<typename T>
Parallel_Orbitals test_deepks< T >::ParaO

◆ search_pbc

template<typename T>
bool test_deepks< T >::search_pbc = true

◆ test_atom_input

template<typename T>
bool test_deepks< T >::test_atom_input = false

◆ ucell

template<typename T>
UnitCell test_deepks< T >::ucell

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