ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
atom_pseudo.h
Go to the documentation of this file.
1
5#ifndef ATOM_PSEUDO_H
6#define ATOM_PSEUDO_H
7
11#include "pseudo.h"
12
16class Atom_pseudo : public pseudo
17{
18public:
19
22
26 int nproj;
28
29 std::vector<int> non_zero_count_soc = {0, 0, 0, 0};
30 std::vector<std::vector<int>> index1_soc = {{}, {}, {}, {}};
31 std::vector<std::vector<int>> index2_soc = {{}, {}, {}, {}};
32
43 void set_d_so(
45 const int &nproj_in,
46 const int &nproj_in_so,
47 const bool has_so,
48 const bool lspinorb,
49 const int nspin);
50
51
60 inline void get_d(const int& is, const int& p1, const int& p2, const std::complex<double>*& tmp_d)
61 {
62 tmp_d = &this->d_so(is, p1, p2);
63 return;
64 }
65
74 inline void get_d(const int& is, const int& p1, const int& p2, const double*& tmp_d)
75 {
76 tmp_d = &this->d_real(p1, p2);
77 return;
78 }
79
80
81#ifdef __MPI
87 void bcast_atom_pseudo(void);
88#endif
89
90};
91
92#endif
ModuleBase::matrix d_real
(:,:), non-spin-orbit case
Definition atom_pseudo.h:25
void get_d(const int &is, const int &p1, const int &p2, const double *&tmp_d)
Get real coupling matrix.
Definition atom_pseudo.h:74
int nproj
number of projectors
Definition atom_pseudo.h:26
void set_d_so(ModuleBase::ComplexMatrix &d_so_in, const int &nproj_in, const int &nproj_in_so, const bool has_so, const bool lspinorb, const int nspin)
Set spin-orbit coupling matrix.
Definition atom_pseudo.cpp:16
std::vector< std::vector< int > > index2_soc
index2 for SOC
Definition atom_pseudo.h:31
~Atom_pseudo()
Definition atom_pseudo.cpp:11
void bcast_atom_pseudo(void)
Broadcast atom pseudopotential data.
Definition atom_pseudo.cpp:154
int nproj_soc
dimension of D_ij^so
Definition atom_pseudo.h:27
std::vector< std::vector< int > > index1_soc
index1 for SOC
Definition atom_pseudo.h:30
void get_d(const int &is, const int &p1, const int &p2, const std::complex< double > *&tmp_d)
Get spin-orbit coupling matrix.
Definition atom_pseudo.h:60
ModuleBase::ComplexArray d_so
spin-orbit coupling data (mohan add 2021-05-07)
Definition atom_pseudo.h:24
Atom_pseudo()
Definition atom_pseudo.cpp:7
std::vector< int > non_zero_count_soc
non-zero count for SOC
Definition atom_pseudo.h:29
A basic type of data for complex array.
Definition complexarray.h:15
Definition complexmatrix.h:11
Definition matrix.h:15
bool has_so
PP_HEADER.
Definition pseudo.h:24
pseudo()
Definition symm_rho_soc_test.cpp:29
pseudo class for pseudopotential data.