ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
vxc_op_tools.h File Reference
#include "source_base/parallel_blkcyc.h"
#include "source_basis/module_ao/parallel_orbitals.h"
#include "source_base/module_container/base/third_party/blas.h"
#include "source_base/parallel_reduce.h"
#include "source_cell/klist.h"
#include <complex>
#include <string>
#include <vector>
Include dependency graph for vxc_op_tools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ModuleIO
 Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in each anonymous namespace) so the header layout, R records and file-append rules cannot diverge between hs_sparse_io.cpp, dhs_sparse_writer.cpp, pos_op_csr.cpp, hsr_writer.cpp and write_dmr.cpp.

Functions

void ModuleIO::set_para2d_MO (const Parallel_Orbitals &pv, const int nbands, Parallel_Blkcyclic &p2d)
 Set up a 2D parallel distribution for MO-space matrices (nbands x nbands).
double ModuleIO::get_real (const std::complex< double > &c)
 Extract real part (for complex numbers).
double ModuleIO::get_real (const double &d)
 Extract real part (for real numbers, identity).
template<typename T>
std::vector< T > ModuleIO::cVc (const T *V, const T *c, const int nbasis, const int nbands, const Parallel_Orbitals &pv, const Parallel_Blkcyclic &p2d)
 Compute c^dagger * V * c in MO basis.
template<typename T>
std::vector< double > ModuleIO::orbital_energy (const int ik, const int nbands, const std::vector< T > &mat_mo, const Parallel_Blkcyclic &p2d)
 Extract diagonal elements (orbital energies) from MO matrix.
template<typename T>
double ModuleIO::all_band_energy (const int ik, const std::vector< T > &mat_mo, const Parallel_Blkcyclic &p2d, const ModuleBase::matrix &wg)
 Sum over bands with occupation weights.
void ModuleIO::write_orb_energy (const K_Vectors &kv, const int nspin0, const int nbands, const std::vector< std::vector< double > > &e_orb, const std::string &out_name, const std::string &header, const std::string &global_out_dir, const bool app=false)
 Write orbital energies to file in LibRPA format.
std::string ModuleIO::eband_filename (const std::string &stem, const int istep, const int out_app_flag)
 Compose the name of a band-decomposed energy file.
std::string ModuleIO::build_eband_header (const int istep, const double etot_eV, const std::string &term_symbol, const std::string &time_stamp)
 Build the five comment lines preceding band-decomposed energy data.