ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
write_mlkedf_desc.h
Go to the documentation of this file.
1#ifndef WRITE_MLKEDF_DESC_H
2#define WRITE_MLKEDF_DESC_H
3
4#ifdef __MLALGO
5
6#include "cal_mlkedf_desc.h"
8
9namespace ModuleIO
10{
11
13{
14public:
18
20 if (this->cal_tool != nullptr) {
21 delete this->cal_tool;
22 this->cal_tool = nullptr;
23 }
24 }
25
27 const std::string& out_dir,
28 psi::Psi<std::complex<double>> *psi,
31 ModulePW::PW_Basis *pw_rho,
32 UnitCell& ucell,
33 const double *veff,
34 const int nrxx
35 );
37 const std::string& out_dir,
38 psi::Psi<std::complex<float>> *psi,
41 ModulePW::PW_Basis *pw_rho,
42 UnitCell& ucell,
43 const double *veff,
44 const int nrxx
45 );
46
47#if ((defined __CUDA) || (defined __ROCM))
49 const std::string& dir,
50 psi::Psi<std::complex<double>, base_device::DEVICE_GPU>* psi,
53 ModulePW::PW_Basis *pw_rho,
54 UnitCell& ucell,
55 const double *veff,
56 const int nrxx
57 );
59 const std::string& dir,
60 psi::Psi<std::complex<float>, base_device::DEVICE_GPU>* psi,
63 ModulePW::PW_Basis *pw_rho,
64 UnitCell& ucell,
65 const double *veff,
66 const int nrxx
67 );
68#endif
69
71 const std::string& out_dir,
72 const double * const *prho,
73 ModulePW::PW_Basis *pw_rho,
74 std::vector<std::vector<double>> &nablaRho,
75 const int nrxx
76 );
77
78 std::string file_name(
79 const std::string& out_dir,
80 std::string parameter,
81 const int kernel_type,
82 const double kernel_scaling
83 );
84
85 Cal_MLKEDF_Descriptors* cal_tool = nullptr; // pointer to the calculation tool
86};
87
88} // namespace ModuleIO
89#endif
90#endif
A class to calculate the descriptors for ML KEDF. Sun, Liang, and Mohan Chen. Physical Review B 109....
Definition cal_mlkedf_desc.h:21
void generateTrainData_KS(const std::string &out_dir, psi::Psi< std::complex< double > > *psi, elecstate::ElecState *pelec, ModulePW::PW_Basis_K *pw_psi, ModulePW::PW_Basis *pw_rho, UnitCell &ucell, const double *veff, const int nrxx)
Definition write_mlkedf_desc.cpp:10
std::string file_name(const std::string &out_dir, std::string parameter, const int kernel_type, const double kernel_scaling)
Definition write_mlkedf_desc.cpp:220
void generate_descriptor(const std::string &out_dir, const double *const *prho, ModulePW::PW_Basis *pw_rho, std::vector< std::vector< double > > &nablaRho, const int nrxx)
Definition write_mlkedf_desc.cpp:111
~Write_MLKEDF_Descriptors()
Definition write_mlkedf_desc.h:19
Cal_MLKEDF_Descriptors * cal_tool
Definition write_mlkedf_desc.h:85
Write_MLKEDF_Descriptors()
Definition write_mlkedf_desc.h:15
Special pw_basis class. It includes different k-points.
Definition pw_basis_k.h:56
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition elecstate.h:20
Definition psi.h:37
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
Definition diag_lcao.h:14