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#pragma once
3
4namespace elecstate
5{
6
7const double* ElecState::getRho(int spin) const
8{
9 // hamilt::MatrixBlock<double> temp{&(this->charge->rho[spin][0]), 1, this->charge->nrxx}; //
10 // this->chr->get_nspin(), this->chr->get_nrxx()};
11 return &(this->charge->rho[spin][0]);
12}
13
14
16{
17 return;
18}
20
21
22void ElecState::init_scf(const UnitCell& ucell,
23 const Parallel_Grid& pgrid,
24 const ModuleBase::ComplexMatrix& strucfac,
25 const bool*,
27 const void*)
28{
29 return;
30}
31
32void ElecState::init_ks(Charge* chg_in, // pointer for class Charge
33 const K_Vectors* klist_in,
34 int nk_in,
35 const ModulePW::PW_Basis_Big* bigpw_in)
36{
37 return;
38}
39
40template <typename T, typename Device>
42 Charge* chg_in,
43 K_Vectors* pkv_in,
44 UnitCell* ucell_in,
45 pseudopot_cell_vnl* ppcell_in,
46 ModulePW::PW_Basis* rhopw_in,
47 ModulePW::PW_Basis_Big* bigpw_in)
48 : basis(wfc_basis_in)
49{
50}
51
52template <typename T, typename Device>
53ElecStatePW<T, Device>::~ElecStatePW()
54{
55}
56
57template <typename T, typename Device>
58void ElecStatePW<T, Device>::psiToRho(const psi::Psi<T, Device>& psi)
59{
60}
61
62template <typename T, typename Device>
63void ElecStatePW<T, Device>::cal_tau(const psi::Psi<T, Device>& psi)
64{
65}
66
67template <typename T, typename Device>
68void ElecStatePW<T, Device>::cal_becsum(const psi::Psi<T, Device>& psi)
69{
70}
71
72template class ElecStatePW<std::complex<float>, base_device::DEVICE_CPU>;
73template class ElecStatePW<std::complex<double>, base_device::DEVICE_CPU>;
74#if ((defined __CUDA) || (defined __ROCM))
75template class ElecStatePW<std::complex<float>, base_device::DEVICE_GPU>;
76template class ElecStatePW<std::complex<double>, base_device::DEVICE_GPU>;
77#endif
78
79Potential::~Potential()
80{
81}
82
83void Potential::cal_v_eff(const Charge* const chg, const UnitCell* const ucell, ModuleBase::matrix& v_eff)
84{
85}
86
87void Potential::cal_fixed_v(double* vl_pseudo)
88{
89}
90
91} // namespace elecstate
92
93// mock of Stochastic_WF
95template <typename T, typename Device>
97{
98 chiortho = nullptr;
99 chi0 = nullptr;
100 shchi = nullptr;
101 nchip = nullptr;
102}
103
104template <typename T, typename Device>
106{
107 delete[] chi0;
108 delete[] shchi;
109 delete[] chiortho;
110 delete[] nchip;
111}
112
113template <typename T, typename Device>
114void Stochastic_WF<T, Device>::init(K_Vectors* p_kv, const int npwx_in)
115{
116 /*chi0 = new ModuleBase::ComplexMatrix[nks_in];
117 shchi = new ModuleBase::ComplexMatrix[nks_in];
118 chiortho = new ModuleBase::ComplexMatrix[nks_in];
119 nchip = new int[nks_in];
120 this->nks = nks_in;*/
121}
122
123#include "source_cell/klist.h"
Definition charge.h:18
double ** rho
Definition charge.h:37
Definition klist.h:13
Definition complexmatrix.h:14
Definition matrix.h:19
Definition pw_basis_big.h:16
Special pw_basis class. It includes different k-points.
Definition pw_basis_k.h:57
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:56
Definition symmetry.h:16
Definition parallel_grid.h:8
~Stochastic_WF()
Definition hsolver_supplementary_mock.h:105
Stochastic_WF()
Definition hsolver_supplementary_mock.h:96
void init(K_Vectors *p_kv, const int npwx_in)
Definition hsolver_supplementary_mock.h:114
Definition unitcell.h:17
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:15
void init_scf(const UnitCell &ucell, const Parallel_Grid &pgrid, const ModuleBase::ComplexMatrix &strucfac, const bool *numeric, ModuleSymmetry::Symmetry &symm, const void *wfcpw=nullptr)
Init rho_core, init rho, renormalize rho, init pot.
Definition elecstate.cpp:30
virtual const double * getRho(int spin) const
Definition elecstate.cpp:13
Charge * charge
pointer to charge density
Definition elecstate.h:115
void init_nelec_spin()
Definition elecstate.cpp:20
void init_ks(Charge *chr_in, const K_Vectors *klist_in, int nk_in, const ModulePW::PW_Basis_Big *bigpw_in)
Definition elecstate.cpp:48
Definition VNL_in_pw.h:21
Definition psi.h:37
Definition cal_dm.h:10
Definition exx_lip.h:23