ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
read_wfc_nao.h
Go to the documentation of this file.
1#ifndef READ_WFC_NAO_H
2#define READ_WFC_NAO_H
3
5#include "source_psi/psi.h"
7
8// mohan add 2010-09-09
9namespace ModuleIO
10{
14bool read_wfc_nao_spin_populations(const std::string& readin_dir,
15 int nkstot,
16 int nspin,
17 bool gamma_only,
18 bool binary,
19 int my_rank,
20 std::vector<double>& populations);
21
28void read_wfc_nao_one_data(std::ifstream& ifs, float& data);
29void read_wfc_nao_one_data(std::ifstream& ifs, double& data);
30
37void read_wfc_nao_one_data(std::ifstream& ifs, std::complex<float>& data);
38void read_wfc_nao_one_data(std::ifstream& ifs, std::complex<double>& data);
39
52template <typename T>
53bool read_wfc_nao(
54 const std::string& global_readin_dir,
55 const Parallel_Orbitals& ParaV,
56 psi::Psi<T>& psid,
57 ModuleBase::matrix& ekb,
58 ModuleBase::matrix& wg,
59 const std::vector<int> &ik2iktot,
60 const int nkstot,
61 const int nspin,
62 const bool binary,
63 const int skip_band = 0,
64 const int istep = -1);
65
66} // namespace ModuleIO
67
68#endif
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void read_wfc_nao_one_data(std::ifstream &ifs, float &data)
Reads a single data value from an input file stream.
Definition read_wfc_nao.cpp:200
bool read_wfc_nao_spin_populations(const std::string &readin_dir, int nkstot, int nspin, bool gamma_only, bool binary, int my_rank, std::vector< double > &populations)
Definition read_wfc_nao.cpp:107
bool read_wfc_nao(const std::string &global_readin_dir, const Parallel_Orbitals &ParaV, psi::Psi< T > &psid, ModuleBase::matrix &ekb, ModuleBase::matrix &wg, const std::vector< int > &ik2iktot, const int nkstot, const int nspin, const bool binary, const int skip_band=0, const int istep=-1)
Reads the wavefunction coefficients from an input file.
Definition read_wfc_nao.cpp:227