ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
write_libxc_r.h
Go to the documentation of this file.
1//======================
2// AUTHOR : Peize Lin
3// DATE : 2024-09-12
4//======================
5
6#ifndef WRITE_LIBXC_R_H
7#define WRITE_LIBXC_R_H
8
9#ifdef __LIBXC
10
11#include <vector>
12#include <fstream>
13#include <string>
14
15class Charge;
16class UnitCell;
17
18namespace ModulePW
19{
20class PW_Basis;
21class PW_Basis_Big;
22}
23
24namespace ModuleIO
25{
26 extern void write_libxc_r(
27 const int order,
28 const std::vector<int> &func_id,
29 const int &nrxx, // number of real-space grid
30 const double &omega, // volume of cell
31 const double tpiba,
32 const Charge &chr,
33 const UnitCell &ucell, // cell used for the cube header (grid geometry and atoms)
34 const ModulePW::PW_Basis_Big &pw_big,
35 const ModulePW::PW_Basis &pw_rhod,
36 const std::string &out_dir, // directory that receives the xc_*.cube files
37 const int istep, // zero-based ionic step; printed one-based in mode 2
38 const int out_app_flag, // 0 overwrite, 1 append, 2 numbered files
39 std::ofstream &ofs_running);
40
41 #ifdef __MPI
42 extern void write_cube_core(
43 std::ofstream &ofs_cube,
44 const int bz,
45 const int nbz,
46 const int nplane,
47 const int startz_current,
48 const double*const data,
49 const int nxy,
50 const int nz,
51 const int nld,
52 const int n_data_newline);
53 #else
54 extern void write_cube_core(
55 std::ofstream &ofs_cube,
56 const double*const data,
57 const int nxy,
58 const int nz,
59 const int n_data_newline);
60 #endif
61}
62
63#endif // __LIBXC
64
65#endif // WRITE_LIBXC_R_H
Definition charge.h:24
Definition pw_basis_big.h:11
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
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
Definition pw_op.cpp:3