ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LCAO_Deepks_Interface< TK, TR > Class Template Reference

#include <lcao_deepks_iface.h>

Collaboration diagram for LCAO_Deepks_Interface< TK, TR >:

Public Member Functions

 LCAO_Deepks_Interface (LCAO_Deepks< TK > *ld_in)
void out_deepks_labels (const double &etot, const int &nks, const int &nat, const int &nlocal, const ModuleBase::matrix &ekb, const std::vector< ModuleBase::Vector3< double > > &kvec_d, const UnitCell &ucell, const LCAO_Orbitals &orb, const Grid_Driver &GridD, const Parallel_Orbitals *ParaV, const psi::Psi< TK > &psid, const module_dm::DensityMatrix< TK, double > *dm, hamilt::HamiltLCAO< TK, TR > *p_ham, const int &iter, const bool &conv_esolver, const int rank, std::ostream &ofs_running)
 output deepks-related labels, descriptors and energy corrections
std::string get_filename (const std::string &file_type, const int &label_type, const int &iter)
 Get the filename for deepks output files.

Private Attributes

LCAO_Deepks< TK > * ld

Constructor & Destructor Documentation

◆ LCAO_Deepks_Interface()

template<typename TK, typename TR>
LCAO_Deepks_Interface< TK, TR >::LCAO_Deepks_Interface ( LCAO_Deepks< TK > * ld_in)

Member Function Documentation

◆ get_filename()

template<typename TK, typename TR>
std::string LCAO_Deepks_Interface< TK, TR >::get_filename ( const std::string & file_type,
const int & label_type,
const int & iter )

Get the filename for deepks output files.

Parameters
file_typeType of the file (e.g., "etot", "ftot", etc.)
label_typeType of the label (from PARAM.inp.deepks_out_labels)
iterIteration number (e.g., -1 for after_scf, or specific iteration number)
Returns
The full path to the output file
Here is the call graph for this function:
Here is the caller graph for this function:

◆ out_deepks_labels()

template<typename TK, typename TR>
void LCAO_Deepks_Interface< TK, TR >::out_deepks_labels ( const double & etot,
const int & nks,
const int & nat,
const int & nlocal,
const ModuleBase::matrix & ekb,
const std::vector< ModuleBase::Vector3< double > > & kvec_d,
const UnitCell & ucell,
const LCAO_Orbitals & orb,
const Grid_Driver & GridD,
const Parallel_Orbitals * ParaV,
const psi::Psi< TK > & psid,
const module_dm::DensityMatrix< TK, double > * dm,
hamilt::HamiltLCAO< TK, TR > * p_ham,
const int & iter,
const bool & conv_esolver,
const int rank,
std::ostream & ofs_running )

output deepks-related labels, descriptors and energy corrections

Parameters
[in]etot
[in]nks
[in]nat
[in]nlocal
[in]ekb
[in]kvec_d
[in]ucell
[in]orb
[in]GridD
[in]ParaV
[in]psid
[in]dm
[in]p_ham
[in]iter
[in]conv_esolver
[in]rank

ebase :no deepks E_delta including

no scf, e_tot=e_base

print out deepks information to the screen

Here is the caller graph for this function:

Member Data Documentation

◆ ld

template<typename TK, typename TR>
LCAO_Deepks<TK>* LCAO_Deepks_Interface< TK, TR >::ld
private

The documentation for this class was generated from the following files: