ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hsolver_supplementary_mock.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_HSOLVER_TEST_HSOLVER_SUPPLEMENTARY_MOCK_H
2#define ABACUS_SOURCE_HSOLVER_TEST_HSOLVER_SUPPLEMENTARY_MOCK_H
3
5
6namespace elecstate
7{
8
9const double *ElecState::getRho(int spin) const
10{
11 // hamilt::MatrixBlock<double> temp{&(this->charge->rho[spin][0]), 1, this->charge->nrxx}; //
12 // this->chr->get_nspin(), this->chr->get_nrxx()};
13 return &(this->charge->rho[spin][0]);
14}
15
16void ElecState::init_nelec_spin() { return; }
17
19 Charge *chg_in, // pointer for class Charge
20 const K_Vectors *klist_in,
21 int nk_in,
22 const ModulePW::PW_Basis_Big *bigpw_in)
23{
24 return;
25}
26
27template <typename T, typename Device>
29 ModulePW::PW_Basis_K *wfc_basis_in,
30 Charge *chg_in,
31 K_Vectors *pkv_in,
32 UnitCell *ucell_in,
33 pseudopot_cell_vnl *ppcell_in,
34 ModulePW::PW_Basis *rhopw_in,
35 ModulePW::PW_Basis_Big *bigpw_in)
36 : basis(wfc_basis_in)
37{
38}
39
40template <typename T, typename Device> ElecStatePW<T, Device>::~ElecStatePW() {}
41
42template <typename T, typename Device> void ElecStatePW<T, Device>::psiToRho(const psi::Psi<T, Device> &psi) {}
43
44template <typename T, typename Device> void ElecStatePW<T, Device>::cal_tau(const psi::Psi<T, Device> &psi) {}
45
46template <typename T, typename Device> void ElecStatePW<T, Device>::cal_becsum(const psi::Psi<T, Device> &psi) {}
47
48
49template class ElecStatePW<std::complex<float>, base_device::DEVICE_CPU>;
50template class ElecStatePW<std::complex<double>, base_device::DEVICE_CPU>;
51#if ((defined __CUDA) || (defined __ROCM))
52template class ElecStatePW<std::complex<float>, base_device::DEVICE_GPU>;
53template class ElecStatePW<std::complex<double>, base_device::DEVICE_GPU>;
54#endif
55
56Potential::~Potential() {}
57
58void Potential::cal_v_eff(const Charge *const chg, const UnitCell *const ucell, ModuleBase::matrix &v_eff) {}
59
60void Potential::cal_fixed_v(double *vl_pseudo) {}
61
62} // namespace elecstate
63
64#include "source_cell/klist.h"
65
66#endif // ABACUS_SOURCE_HSOLVER_TEST_HSOLVER_SUPPLEMENTARY_MOCK_H
Definition charge.h:24
Definition matrix.h:15
Provide the basic information about unitcell.
Definition unitcell.h:16
ElecStatePW(ModulePW::PW_Basis_K *wfc_basis_in, Charge *chr_in, K_Vectors *pkv_in, UnitCell *ucell_in, pseudopot_cell_vnl *ppcell_in, ModulePW::PW_Basis *rhopw_in, ModulePW::PW_Basis_Big *bigpw_in)
Definition elecstate_pw.cpp:21
virtual const double * getRho(int spin) const
Definition elecstate.cpp:10
Charge * charge
pointer to charge density
Definition elecstate.h:139
void init_nelec_spin()
Definition elecstate.cpp:17
void init_ks(Charge *chr_in, const K_Vectors *klist_in, int nk_in, const ModulePW::PW_Basis_Big *bigpw_in)
Definition elecstate.cpp:28
Definition psi.h:37
Definition read_atoms_hlp_test.cpp:13
Definition diag_lcao.h:14