ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
vxc_op_mat.h
Go to the documentation of this file.
1#ifndef VXC_OP_MAT_H
2#define VXC_OP_MAT_H
3
4#include "source_psi/psi.h"
6#include "source_cell/klist.h"
12
13#include <complex>
14#include <iosfwd>
15#include <map>
16#include <string>
17#include <vector>
18
19#ifdef __EXX
21#endif
22
23namespace hamilt
24{
25template <typename T>
26class HContainer;
27} // namespace hamilt
28
29namespace ModuleIO
30{
31
45template <typename TK, typename TR>
46void write_Vxc(const int nspin,
47 const int istep,
48 const double etot,
49 const int nbasis,
50 const int drank,
51 const Parallel_Orbitals* pv,
52 const psi::Psi<TK>& psi,
53 const UnitCell& ucell,
54 Structure_Factor& sf,
55 surchem& solvent,
56 const ModulePW::PW_Basis& rho_basis,
57 const ModulePW::PW_Basis& rhod_basis,
58 const ModuleBase::matrix& vloc,
59 const Charge& chg,
60 const K_Vectors& kv,
61 const std::vector<double>& orb_cutoff,
62 const ModuleBase::matrix& wg,
63 Grid_Driver& gd,
64 const bool dft_plus_u,
65 const bool gamma_only,
66 const bool out_mat,
67 const int out_app_flag,
68 const std::string& mat_dir,
69 const std::string& global_out_dir,
70 const int out_ndigits,
71 const std::string& ks_solver,
72 bool cal_exx,
73 const Exx_Info& exx_info,
74 std::ofstream& ofs_running
75#ifdef __EXX
76 ,
77 std::vector<std::map<int, std::map<hamilt::TAC, RI::Tensor<double>>>>* Hexxd,
78 std::vector<std::map<int, std::map<hamilt::TAC, RI::Tensor<std::complex<double>>>>>* Hexxc
79#endif
80);
81
82} // namespace ModuleIO
83
84#endif // VXC_OP_MAT_H
Definition hcontainer.h:147
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void write_Vxc(const int nspin, const int istep, const double etot, const int nbasis, const int drank, const Parallel_Orbitals *pv, const psi::Psi< TK > &psi, const UnitCell &ucell, Structure_Factor &sf, surchem &solvent, const ModulePW::PW_Basis &rho_basis, const ModulePW::PW_Basis &rhod_basis, const ModuleBase::matrix &vloc, const Charge &chg, const K_Vectors &kv, const std::vector< double > &orb_cutoff, const ModuleBase::matrix &wg, Grid_Driver &gd, const bool dft_plus_u, const bool gamma_only, const bool out_mat, const int out_app_flag, const std::string &mat_dir, const std::string &global_out_dir, const int out_ndigits, const std::string &ks_solver, bool cal_exx, const Exx_Info &exx_info, std::ofstream &ofs_running)
Write the Vxc matrix in KS orbital representation, useful for GW calculation including terms: local/s...
Definition vxc_op_mat.cpp:15
Definition wf_op.cpp:6