ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
klist_io.h File Reference
#include "source_base/matrix3.h"
#include "source_base/vector3.h"
#include <fstream>
#include <map>
#include <string>
#include <vector>
Include dependency graph for klist_io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  KListIO::LineK
 Result of line-mode interpolation between special k-points. More...

Namespaces

namespace  ModuleSymmetry
namespace  KListIO

Functions

std::string KListIO::ibz_kpt_table (int nkstot, const std::vector< ModuleBase::Vector3< double > > &kvec_d, const std::vector< int > &ibz_index, const std::vector< ModuleBase::Vector3< double > > &kvec_d_ibz)
 Render the IBZ reduction table ("IBZ" k-point -> originating k-point).
std::string KListIO::ibz_wk_table (int nkstot_ibz, const std::vector< ModuleBase::Vector3< double > > &kvec_d_ibz, const std::vector< double > &wk_ibz, const std::vector< int > &ibz2bz)
 Render the IBZ weight table (IBZ k-point, weight, multiplicity, origin index).
bool KListIO::find_kpoints_header (std::ifstream &ifk)
void KListIO::read_kpt_list (std::ifstream &ifk, const int nkstot, std::vector< ModuleBase::Vector3< double > > &kvec, std::vector< double > &wk)
LineK KListIO::interp_line (std::ifstream &ifk, const int nks_special)
void KListIO::build_kstars (const std::vector< ModuleBase::Vector3< double > > &kvec_d, const std::vector< ModuleBase::Matrix3 > &kgmatrix, const int nrotkm, const std::vector< ModuleBase::Vector3< double > > &kvec_d_ibz, const double epsilon, std::vector< std::map< int, ModuleBase::Vector3< double > > > &kstars)
int KListIO::append_time_reversal_ops (const ModuleSymmetry::Symmetry &symm, std::vector< ModuleBase::Matrix3 > &kgmatrix, const int nrotkm)
void KListIO::pack_kpts (const std::vector< int > &isk, const std::vector< double > &wk, const std::vector< ModuleBase::Vector3< double > > &kvec_c, const std::vector< ModuleBase::Vector3< double > > &kvec_d, const std::vector< ModuleBase::Vector3< double > > &kvec_c_full, const int nkstot, std::vector< int > &isk_aux, std::vector< double > &wk_aux, std::vector< double > &kvec_c_aux, std::vector< double > &kvec_d_aux, std::vector< double > &kvec_c_full_aux)
void KListIO::bcast_kstars (std::vector< std::map< int, ModuleBase::Vector3< double > > > &kstars, const int nkstot, const int my_rank)
void KListIO::unpack_kpts (const std::vector< int > &isk_aux, const std::vector< double > &wk_aux, const std::vector< double > &kvec_c_aux, const std::vector< double > &kvec_d_aux, const std::vector< double > &kvec_c_full_aux, const int nks, const int startk, std::vector< int > &isk, std::vector< double > &wk, std::vector< ModuleBase::Vector3< double > > &kvec_c, std::vector< ModuleBase::Vector3< double > > &kvec_d, std::vector< ModuleBase::Vector3< double > > &kvec_c_full)
void KListIO::fill_full_kvec (const bool kc_done, const bool kd_done, const int nkstot_nospin, const ModuleBase::Matrix3 &reciprocal_vec, const std::vector< ModuleBase::Vector3< double > > &kvec_c, const std::vector< ModuleBase::Vector3< double > > &kvec_d, std::vector< ModuleBase::Vector3< double > > &kvec_c_full)
void KListIO::build_ik2iktot (const int my_pool, const std::vector< int > &startk_pool, const int spin_mult, const int nks, const int nkstot, std::vector< int > &ik2iktot)
void KListIO::expand_spin_kpoints (const int spin_mult, std::vector< ModuleBase::Vector3< double > > &kvec_c, std::vector< ModuleBase::Vector3< double > > &kvec_d, std::vector< double > &wk, std::vector< int > &isk, int &nks, int &nkstot)
void KListIO::write_auto_kfile (const UnitCell &ucell, const std::string &fn, const bool gamma_only_local, const double kspacing[3], const std::string &kmesh_type, const double koffset[3], std::ofstream &ofs_warning)