ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LR_IO Namespace Reference

Classes

class  RI_kRlist

Functions

void parse_band_out_file (const std::string &in_dir, int &nbands_file, int &nk_file, int &nspin_file, int &nocc_file)
std::vector< double > read_energy_qp (const int nocc, const int nvirt, const std::string &path, int &ncore, const int nk, const int nspin_tmp, const int nspin_file)
 vector as {ik, iband, <occ, ks_ene, gw_ene>}
std::vector< double > read_energy_qp_from_band_files (const K_Vectors &kv, const int nocc, const int nvirt, int &ncore, const std::string &path, const int nk, const int nspin_tmp, const int nspin_file)
 same as read_energy_qp, but read from KS_band and GW_band files
template<typename TK>
void read_librpa_eigenvectors (psi::Psi< TK > &wfc_ks, psi::Psi< TK > &wfc_ks_global, const std::string &in_dir, const int ncore, const int nbands_file, const int nspin_tmp, const int nspin_file, const int my_rank, Parallel_Orbitals &pmat)
template<typename TK>
void read_librpa_eigenvectors_from_band_files (psi::Psi< TK > &wfc_ks, psi::Psi< TK > &wfc_ks_global, const std::string &in_dir, const int ncore, const int nbands_file, const int nspin_tmp, const int nspin_file, const int my_rank, Parallel_Orbitals &pmat)
template void read_librpa_eigenvectors< double > (psi::Psi< double > &wfc_ks, psi::Psi< double > &wfc_ks_global, const std::string &in_dir, const int ncore, const int nbands_file, const int nspin_tmp, const int nspin_file, const int my_rank, Parallel_Orbitals &pmat)
template void read_librpa_eigenvectors< std::complex< double > > (psi::Psi< std::complex< double > > &wfc_ks, psi::Psi< std::complex< double > > &wfc_ks_global, const std::string &in_dir, const int ncore, const int nbands_file, const int nspin_tmp, const int nspin_file, const int my_rank, Parallel_Orbitals &pmat)
template void read_librpa_eigenvectors_from_band_files< double > (psi::Psi< double > &wfc_ks, psi::Psi< double > &wfc_ks_global, const std::string &in_dir, const int ncore, const int nbands_file, const int nspin_tmp, const int nspin_file, const int my_rank, Parallel_Orbitals &pmat)
template void read_librpa_eigenvectors_from_band_files< std::complex< double > > (psi::Psi< std::complex< double > > &wfc_ks, psi::Psi< std::complex< double > > &wfc_ks_global, const std::string &in_dir, const int ncore, const int nbands_file, const int nspin_tmp, const int nspin_file, const int my_rank, Parallel_Orbitals &pmat)
void read_one_data (std::ifstream &ifs, double &data)
void read_one_data (std::ifstream &ifs, std::complex< double > &data)
void read_one_data (double &re, double &im, std::complex< double > &out)
void read_one_data (double &re, double &im, double &out)
void set_zero_if_close (ModuleBase::Vector3< double > &vec, const double tol=1e-8)

Function Documentation

◆ parse_band_out_file()

void LR_IO::parse_band_out_file ( const std::string & in_dir,
int & nbands_file,
int & nk_file,
int & nspin_file,
int & nocc_file )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_energy_qp()

std::vector< double > LR_IO::read_energy_qp ( const int nocc,
const int nvirt,
const std::string & path,
int & ncore,
const int nk,
const int nspin_tmp,
const int nspin_file )

vector as {ik, iband, <occ, ks_ene, gw_ene>}

Parameters
ncoreas output, number of core orbitals parsed from file
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_energy_qp_from_band_files()

std::vector< double > LR_IO::read_energy_qp_from_band_files ( const K_Vectors & kv,
const int nocc,
const int nvirt,
int & ncore,
const std::string & in_dir,
const int nk,
const int nspin_tmp,
const int nspin_file )

same as read_energy_qp, but read from KS_band and GW_band files

Here is the caller graph for this function:

◆ read_librpa_eigenvectors()

template<typename TK>
void LR_IO::read_librpa_eigenvectors ( psi::Psi< TK > & wfc_ks,
psi::Psi< TK > & wfc_ks_global,
const std::string & in_dir,
const int ncore,
const int nbands_file,
const int nspin_tmp,
const int nspin_file,
const int my_rank,
Parallel_Orbitals & pmat )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_librpa_eigenvectors< double >()

template void LR_IO::read_librpa_eigenvectors< double > ( psi::Psi< double > & wfc_ks,
psi::Psi< double > & wfc_ks_global,
const std::string & in_dir,
const int ncore,
const int nbands_file,
const int nspin_tmp,
const int nspin_file,
const int my_rank,
Parallel_Orbitals & pmat )

◆ read_librpa_eigenvectors< std::complex< double > >()

template void LR_IO::read_librpa_eigenvectors< std::complex< double > > ( psi::Psi< std::complex< double > > & wfc_ks,
psi::Psi< std::complex< double > > & wfc_ks_global,
const std::string & in_dir,
const int ncore,
const int nbands_file,
const int nspin_tmp,
const int nspin_file,
const int my_rank,
Parallel_Orbitals & pmat )
Here is the call graph for this function:

◆ read_librpa_eigenvectors_from_band_files()

template<typename TK>
void LR_IO::read_librpa_eigenvectors_from_band_files ( psi::Psi< TK > & wfc_ks,
psi::Psi< TK > & wfc_ks_global,
const std::string & in_dir,
const int ncore,
const int nbands_file,
const int nspin_tmp,
const int nspin_file,
const int my_rank,
Parallel_Orbitals & pmat )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_librpa_eigenvectors_from_band_files< double >()

template void LR_IO::read_librpa_eigenvectors_from_band_files< double > ( psi::Psi< double > & wfc_ks,
psi::Psi< double > & wfc_ks_global,
const std::string & in_dir,
const int ncore,
const int nbands_file,
const int nspin_tmp,
const int nspin_file,
const int my_rank,
Parallel_Orbitals & pmat )

◆ read_librpa_eigenvectors_from_band_files< std::complex< double > >()

template void LR_IO::read_librpa_eigenvectors_from_band_files< std::complex< double > > ( psi::Psi< std::complex< double > > & wfc_ks,
psi::Psi< std::complex< double > > & wfc_ks_global,
const std::string & in_dir,
const int ncore,
const int nbands_file,
const int nspin_tmp,
const int nspin_file,
const int my_rank,
Parallel_Orbitals & pmat )
Here is the call graph for this function:

◆ read_one_data() [1/4]

void LR_IO::read_one_data ( double & re,
double & im,
double & out )
inline

◆ read_one_data() [2/4]

void LR_IO::read_one_data ( double & re,
double & im,
std::complex< double > & out )
inline

◆ read_one_data() [3/4]

void LR_IO::read_one_data ( std::ifstream & ifs,
double & data )
inline
Here is the caller graph for this function:

◆ read_one_data() [4/4]

void LR_IO::read_one_data ( std::ifstream & ifs,
std::complex< double > & data )
inline

◆ set_zero_if_close()

void LR_IO::set_zero_if_close ( ModuleBase::Vector3< double > & vec,
const double tol = 1e-8 )
inline
Here is the caller graph for this function: