ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
lr_io.h File Reference
#include "source_base/tool_title.h"
#include "source_basis/module_ao/parallel_orbitals.h"
#include "source_cell/klist.h"
#include "source_cell/unitcell.h"
#include "source_lcao/module_lr/utils/lr_io_krlist.h"
#include "source_psi/psi.h"
#include <cmath>
#include <complex>
#include <fstream>
#include <map>
#include <string>
#include <vector>
Include dependency graph for lr_io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LR_IO

Functions

void LR_IO::read_one_data (std::ifstream &ifs, double &data)
void LR_IO::read_one_data (std::ifstream &ifs, std::complex< double > &data)
void LR_IO::read_one_data (double &re, double &im, std::complex< double > &out)
void LR_IO::read_one_data (double &re, double &im, double &out)
void LR_IO::set_zero_if_close (ModuleBase::Vector3< double > &vec, const double tol=1e-8)
void LR_IO::parse_band_out_file (const std::string &in_dir, int &nbands_file, int &nk_file, int &nspin_file, int &nocc_file)
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>}
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 &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 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)
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)