ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
gint_rho_gpu.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_RHO_GPU_H
2#define ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_RHO_GPU_H
3
4#include "gint.h"
5#include "gint_info.h"
7#include <memory>
8#include <vector>
9
10namespace ModuleGint
11{
12
13class Gint_rho_gpu : public Gint
14{
15 public:
17 const std::vector<HContainer<double> *> &dm_vec,
18 const int nspin,
19 double **rho,
20 bool is_dm_symm = true)
21 : dm_vec_(dm_vec), nspin_(nspin), rho_(rho), is_dm_symm_(is_dm_symm)
22 {
23 }
24
25 void cal_gint();
26
27 private:
28 template <typename Real>
29 void cal_gint_impl_();
30
31 // input
32 const std::vector<HContainer<double> *> dm_vec_;
33 const int nspin_;
34
35 // if true, it means the DMR matrix is symmetric,
36 // which leads to faster computations compared to the asymmetric case.
37 const bool is_dm_symm_;
38
39 // output
40 double **rho_ = nullptr;
41};
42
43} // namespace ModuleGint
44
45#endif // ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_RHO_GPU_H
void cal_gint_impl_()
Definition gint_rho_gpu.cpp:29
const std::vector< HContainer< double > * > dm_vec_
Definition gint_rho_gpu.h:32
double ** rho_
Definition gint_rho_gpu.h:40
const bool is_dm_symm_
Definition gint_rho_gpu.h:37
const int nspin_
Definition gint_rho_gpu.h:33
void cal_gint()
Definition gint_rho_gpu.cpp:11
Gint_rho_gpu(const std::vector< HContainer< double > * > &dm_vec, const int nspin, double **rho, bool is_dm_symm=true)
Definition gint_rho_gpu.h:16
Definition batch_biggrid.cpp:4
hamilt::HContainer< T > HContainer
Definition gint_type.h:15