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 USE_LIBXC
10
11#include <vector>
12#include <fstream>
13
14 class Charge;
15 namespace ModulePW{ class PW_Basis_Big; }
16 namespace ModulePW{ class PW_Basis; }
17
18namespace ModuleIO
19{
20 extern void write_libxc_r(
21 const int order,
22 const std::vector<int> &func_id,
23 const int &nrxx, // number of real-space grid
24 const double &omega, // volume of cell
25 const double tpiba,
26 const Charge &chr,
27 const ModulePW::PW_Basis_Big &pw_big,
28 const ModulePW::PW_Basis &pw_rhod);
29
30 #ifdef __MPI
31 extern void write_cube_core(
32 std::ofstream &ofs_cube,
33 const int bz,
34 const int nbz,
35 const int nplane,
36 const int startz_current,
37 const double*const data,
38 const int nxy,
39 const int nz,
40 const int nld,
41 const int n_data_newline);
42 #else
43 extern void write_cube_core(
44 std::ofstream &ofs_cube,
45 const double*const data,
46 const int nxy,
47 const int nz,
48 const int n_data_newline);
49 #endif
50}
51
52#endif // USE_LIBXC
53
54#endif // WRITE_LIBXC_R_H
Definition charge.h:20
Definition pw_basis_big.h:16
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:56
This class has two functions: restart psi from the previous calculation, and write psi to the disk.
Definition cal_dos.h:9
Definition pw_op.cpp:3