|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
this-free helpers extracted from K_Vectors (IBZ table formatting and line-mode k-point interpolation). Kept separate from klist.cpp so the logic is testable in isolation; klist.cpp only keeps thin wrappers. More...
#include "klist_io.h"#include "source_base/formatter.h"#include "source_base/global_function.h"#include "source_base/parallel_common.h"#include "source_cell/module_symmetry/symmetry.h"#include "source_cell/reciprocal_grid.h"#include "source_cell/unitcell.h"#include <algorithm>#include <cmath>#include <sstream>Namespaces | |
| 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::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::bcast_kstars (std::vector< std::map< int, ModuleBase::Vector3< double > > > &kstars, const int nkstot, const int my_rank) |
| 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) |