ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
output_mat_sparse.h
Go to the documentation of this file.
1#ifndef OUTPUT_MAT_SPARSE_H
2#define OUTPUT_MAT_SPARSE_H
3
6#include "source_cell/klist.h"
9#include "source_pw/module_pwdft/dftu_base.h" // mohan add 20251107
10
11#include <fstream>
12
13namespace ModuleIO
14{
16{
17 bool out_mat_dh = false;
18 bool out_mat_ds = false;
19 bool out_mat_t = false;
20 bool out_mat_r = false;
21 int dh_precision = 16;
22 int ds_precision = 16;
23 int t_precision = 16;
24 int r_precision = 16;
25 double sparse_threshold = 1e-10;
26 bool binary = false;
27};
28
30template <typename T>
32 const int& istep,
33 const ModuleBase::matrix& v_eff,
34 const Parallel_Orbitals& pv,
35 const TwoCenterBundle& two_center_bundle,
36 const LCAO_Orbitals& orb,
37 UnitCell& ucell,
38 const Grid_Driver& grid,
39 const K_Vectors& kv,
40 hamilt::Hamilt<T>* p_ham,
41 Plus_U_Base* p_dftu,
42 const std::string& global_out_dir,
43 const std::string& global_matrix_dir,
44 const std::string& calculation,
45 const int out_app_flag,
46 const int nspin,
47 const bool gamma_only_local,
48 const int npol,
49 const int nlocal,
50 const bool cal_force,
51 std::ofstream& ofs_running);
52} // namespace ModuleIO
53
54#endif // OUTPUT_MAT_SPARSE_H
Grid_Driver class for neighbor search interface.
Definition sltk_grid_driver.h:63
Class for k-points management.
Definition klist.h:20
Definition orb_read.h:18
Definition matrix.h:15
Definition parallel_orbitals.h:16
Definition dftu_base.h:21
Definition two_center_bundle.h:11
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition hamilt.h:17
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void output_mat_sparse(const MatSparseOutputOptions &options, const int &istep, const ModuleBase::matrix &v_eff, const Parallel_Orbitals &pv, const TwoCenterBundle &two_center_bundle, const LCAO_Orbitals &orb, UnitCell &ucell, const Grid_Driver &grid, const K_Vectors &kv, hamilt::Hamilt< T > *p_ham, Plus_U_Base *p_dftu, const std::string &global_out_dir, const std::string &global_matrix_dir, const std::string &calculation, const int out_app_flag, const int nspin, const bool gamma_only_local, const int npol, const int nlocal, const bool cal_force, std::ofstream &ofs_running)
the output interface to write the sparse matrix of dH, dS, T, and r
Definition output_mat_sparse.cpp:11
Grid_Driver class for neighbor search interface.
Definition output_mat_sparse.h:16
bool out_mat_r
Definition output_mat_sparse.h:20
bool out_mat_ds
Definition output_mat_sparse.h:18
int t_precision
Definition output_mat_sparse.h:23
double sparse_threshold
Definition output_mat_sparse.h:25
int dh_precision
Definition output_mat_sparse.h:21
bool out_mat_t
Definition output_mat_sparse.h:19
int ds_precision
Definition output_mat_sparse.h:22
bool out_mat_dh
Definition output_mat_sparse.h:17
int r_precision
Definition output_mat_sparse.h:24
bool binary
Definition output_mat_sparse.h:26