ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
dftu_base_io.h File Reference
#include "source_base/matrix.h"
#include "source_estate/occ_matrix.h"
#include "source_pw/module_pwdft/dftu_types.h"
#include <iosfwd>
#include <string>
#include <vector>
Include dependency graph for dftu_base_io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  DFTU_BASE

Typedefs

using DFTU_BASE::OccMatData = std::vector<std::vector<std::vector<ModuleBase::matrix>>>
 nested occupation-matrix type used by DFT+U: occ_mat[iat][l][spin](m0, m1)

Functions

bool DFTU_BASE::is_ion_step_output_step (const int istep, const OccmatOutputCfg &cfg)
bool DFTU_BASE::is_elec_snapshot_trigger (const int iter, const bool conv_esolver, const OccmatOutputCfg &cfg)
std::string DFTU_BASE::gen_ion_step_occ_mat_filename (const std::string &out_dir, const int istep)
std::string DFTU_BASE::find_first_existing_file (const std::string &dir, const std::vector< std::string > &candidates)
void DFTU_BASE::append_ion_step_snapshot (const Plus_U_Base &dftu, const UnitCell &ucell, const std::string &global_out_dir, const OccmatStepInfo &step, const bool conv_esolver, const bool occmat_ready, const OccmatOutputCfg &cfg, const OccmatSocLayout &soc_layout)
void DFTU_BASE::read_occup_m (const UnitCell &ucell, OccupationMatrix &occ, const std::vector< int > &l_channel, const std::string &fn, int nspin, int npol, const OccmatSocLayout &soc_layout)
void DFTU_BASE::local_occup_bcast (const UnitCell &ucell, OccupationMatrix &occ, const std::vector< int > &l_channel)
void DFTU_BASE::prepare_ion_step_output (const std::string &global_out_dir, const int istep, const int iter, const OccmatOutputCfg &cfg)
void DFTU_BASE::write_latest_occmat (const Plus_U_Base &dftu, const UnitCell &ucell, const std::string &global_out_dir, const OccmatStepInfo &step, const OccmatOutputCfg &cfg, const OccmatSocLayout &soc_layout)
void DFTU_BASE::write_occup_m (const Plus_U_Base &dftu, const UnitCell &ucell, std::ostream &ofs, const OccmatSocLayout &soc_layout)
void DFTU_BASE::write_occup_eigenvalues (const Plus_U_Base &dftu, const UnitCell &ucell, std::ostream &ofs, const OccmatSocLayout &soc_layout)
 Append sorted occupation eigenvalues as restart-safe comment lines.