ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleGint::GintInfo Class Reference

#include <gint_info.h>

Collaboration diagram for ModuleGint::GintInfo:

Public Member Functions

 GintInfo (int nbx, int nby, int nbz, int nmx, int nmy, int nmz, int startidx_bx, int startidx_by, int startidx_bz, int nbx_local, int nby_local, int nbz_local, const Numerical_Orbital *Phi, const UnitCell &ucell, Grid_Driver &gd, int nspin, bool gamma_only, bool domag, bool use_gpu, int nstream)
 ~GintInfo ()
const std::vector< std::shared_ptr< BigGrid > > & get_biggrids ()
int get_bgrids_num () const
const std::vector< int > & get_trace_lo () const
int get_lgd () const
int get_nat () const
const UnitCell * get_ucell () const
const std::vector< int > & get_ijr_info () const
int get_local_mgrid_num () const
double get_mgrid_volume () const
GintPrecision get_exec_precision () const
int get_nspin () const
bool get_domag () const
bool use_gpu () const
void set_exec_precision (const GintPrecision precision)
template<typename T>
HContainer< T > get_hr (int npol=1) const

Static Public Member Functions

static GintInfo make_test_instance (const UnitCell &ucell, std::vector< int > ijr_info)
static GintInfo * make_test_instance_ptr (const UnitCell &ucell, std::vector< int > ijr_info)

Private Member Functions

 GintInfo ()=default
void init_atoms_ (int ntype, const Atom *atoms, const Numerical_Orbital *Phi)
void init_trace_lo_ (const UnitCell &ucell, const int nspin)
void init_ijr_info_ (const UnitCell &ucell, Grid_Driver &gd)

Private Attributes

const UnitCell * ucell_ = nullptr
std::shared_ptr< const UnitCellInfo > unitcell_info_
std::shared_ptr< const BigGridInfo > biggrid_info_
std::shared_ptr< const MeshGridInfo > meshgrid_info_
std::shared_ptr< const DivideInfo > divide_info_
std::shared_ptr< const LocalCellInfo > localcell_info_
std::vector< std::shared_ptr< BigGrid > > biggrids_
std::vector< std::map< Vec3iVec3i, GintAtom > > atoms_
std::vector< bool > is_atom_in_proc_
std::vector< int > ijr_info_
std::vector< int > trace_lo_
std::vector< Numerical_Orbital > orbs_
int lgd_ = 0
GintPrecision exec_precision_ = GintPrecision::fp64
int nspin_ = 1
bool gamma_only_ = false
bool domag_ = false
bool use_gpu_ = false

Constructor & Destructor Documentation

◆ GintInfo() [1/2]

ModuleGint::GintInfo::GintInfo ( int nbx,
int nby,
int nbz,
int nmx,
int nmy,
int nmz,
int startidx_bx,
int startidx_by,
int startidx_bz,
int nbx_local,
int nby_local,
int nbz_local,
const Numerical_Orbital * Phi,
const UnitCell & ucell,
Grid_Driver & gd,
int nspin,
bool gamma_only,
bool domag,
bool use_gpu,
int nstream )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~GintInfo()

ModuleGint::GintInfo::~GintInfo ( )
Here is the call graph for this function:

◆ GintInfo() [2/2]

ModuleGint::GintInfo::GintInfo ( )
privatedefault
Here is the caller graph for this function:

Member Function Documentation

◆ get_bgrids_num()

int ModuleGint::GintInfo::get_bgrids_num ( ) const
inline

◆ get_biggrids()

const std::vector< std::shared_ptr< BigGrid > > & ModuleGint::GintInfo::get_biggrids ( )
inline

◆ get_domag()

bool ModuleGint::GintInfo::get_domag ( ) const
inline
Here is the caller graph for this function:

◆ get_exec_precision()

GintPrecision ModuleGint::GintInfo::get_exec_precision ( ) const
inline
Here is the caller graph for this function:

◆ get_hr()

template<typename T>
HContainer< T > ModuleGint::GintInfo::get_hr ( int npol = 1) const
inline
Here is the caller graph for this function:

◆ get_ijr_info()

const std::vector< int > & ModuleGint::GintInfo::get_ijr_info ( ) const
inline
Here is the caller graph for this function:

◆ get_lgd()

int ModuleGint::GintInfo::get_lgd ( ) const
inline
Here is the caller graph for this function:

◆ get_local_mgrid_num()

int ModuleGint::GintInfo::get_local_mgrid_num ( ) const
inline

◆ get_mgrid_volume()

double ModuleGint::GintInfo::get_mgrid_volume ( ) const
inline

◆ get_nat()

int ModuleGint::GintInfo::get_nat ( ) const
inline

◆ get_nspin()

int ModuleGint::GintInfo::get_nspin ( ) const
inline
Here is the caller graph for this function:

◆ get_trace_lo()

const std::vector< int > & ModuleGint::GintInfo::get_trace_lo ( ) const
inline
Here is the caller graph for this function:

◆ get_ucell()

const UnitCell * ModuleGint::GintInfo::get_ucell ( ) const
inline
Here is the caller graph for this function:

◆ init_atoms_()

void ModuleGint::GintInfo::init_atoms_ ( int ntype,
const Atom * atoms,
const Numerical_Orbital * Phi )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_ijr_info_()

void ModuleGint::GintInfo::init_ijr_info_ ( const UnitCell & ucell,
Grid_Driver & gd )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_trace_lo_()

void ModuleGint::GintInfo::init_trace_lo_ ( const UnitCell & ucell,
const int nspin )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_test_instance()

GintInfo ModuleGint::GintInfo::make_test_instance ( const UnitCell & ucell,
std::vector< int > ijr_info )
inlinestatic
Here is the call graph for this function:

◆ make_test_instance_ptr()

GintInfo * ModuleGint::GintInfo::make_test_instance_ptr ( const UnitCell & ucell,
std::vector< int > ijr_info )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_exec_precision()

void ModuleGint::GintInfo::set_exec_precision ( const GintPrecision precision)
inline
Here is the caller graph for this function:

◆ use_gpu()

bool ModuleGint::GintInfo::use_gpu ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ atoms_

std::vector<std::map<Vec3iVec3i, GintAtom> > ModuleGint::GintInfo::atoms_
private

◆ biggrid_info_

std::shared_ptr<const BigGridInfo> ModuleGint::GintInfo::biggrid_info_
private

◆ biggrids_

std::vector<std::shared_ptr<BigGrid> > ModuleGint::GintInfo::biggrids_
private

◆ divide_info_

std::shared_ptr<const DivideInfo> ModuleGint::GintInfo::divide_info_
private

◆ domag_

bool ModuleGint::GintInfo::domag_ = false
private

◆ exec_precision_

GintPrecision ModuleGint::GintInfo::exec_precision_ = GintPrecision::fp64
private

◆ gamma_only_

bool ModuleGint::GintInfo::gamma_only_ = false
private

◆ ijr_info_

std::vector<int> ModuleGint::GintInfo::ijr_info_
private

◆ is_atom_in_proc_

std::vector<bool> ModuleGint::GintInfo::is_atom_in_proc_
private

◆ lgd_

int ModuleGint::GintInfo::lgd_ = 0
private

◆ localcell_info_

std::shared_ptr<const LocalCellInfo> ModuleGint::GintInfo::localcell_info_
private

◆ meshgrid_info_

std::shared_ptr<const MeshGridInfo> ModuleGint::GintInfo::meshgrid_info_
private

◆ nspin_

int ModuleGint::GintInfo::nspin_ = 1
private

◆ orbs_

std::vector<Numerical_Orbital> ModuleGint::GintInfo::orbs_
private

◆ trace_lo_

std::vector<int> ModuleGint::GintInfo::trace_lo_
private

◆ ucell_

const UnitCell* ModuleGint::GintInfo::ucell_ = nullptr
private

◆ unitcell_info_

std::shared_ptr<const UnitCellInfo> ModuleGint::GintInfo::unitcell_info_
private

◆ use_gpu_

bool ModuleGint::GintInfo::use_gpu_ = false
private

The documentation for this class was generated from the following files: