ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
gint_vl_nspin4.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_VL_NSPIN4_H
2#define ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_VL_NSPIN4_H
3
4#include "gint.h"
5#include "gint_info.h"
7#include <memory>
8#include <vector>
9
10namespace ModuleGint
11{
12
13class Gint_vl_nspin4 : public Gint
14{
15 public:
16 Gint_vl_nspin4(std::vector<const double *> vr_eff, HContainer<std::complex<double>> *hR)
17 : vr_eff_(vr_eff), hR_(hR), dr3_(gint_info_->get_mgrid_volume())
18 {
19 }
20
21 void cal_gint();
22
23 private:
24 void init_hr_gint_();
25
26 // note that only the upper triangle matrix of hR is calculated
27 // that's why we need compose_hr_gint() to fill the lower triangle matrix.
28 void cal_hr_gint_();
29
30 // input
31 std::vector<const double *> vr_eff_;
32
33 // output
35
36 // Intermediate variables
37 const double dr3_;
38
39 const int nspin_ = 4;
40
41 std::vector<HContainer<double>> hr_gint_part_;
42};
43
44} // namespace ModuleGint
45
46#endif // ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_VL_NSPIN4_H
Gint_vl_nspin4(std::vector< const double * > vr_eff, HContainer< std::complex< double > > *hR)
Definition gint_vl_nspin4.h:16
std::vector< const double * > vr_eff_
Definition gint_vl_nspin4.h:31
void cal_gint()
Definition gint_vl_nspin4.cpp:10
const int nspin_
Definition gint_vl_nspin4.h:39
std::vector< HContainer< double > > hr_gint_part_
Definition gint_vl_nspin4.h:41
HContainer< std::complex< double > > * hR_
Definition gint_vl_nspin4.h:34
const double dr3_
Definition gint_vl_nspin4.h:37
void cal_hr_gint_()
Definition gint_vl_nspin4.cpp:29
void init_hr_gint_()
Definition gint_vl_nspin4.cpp:20
static GintInfo * gint_info_
Definition gint.h:31
Definition batch_biggrid.cpp:4
hamilt::HContainer< T > HContainer
Definition gint_type.h:15