ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
system_parameter.h
Go to the documentation of this file.
1#ifndef SYSTEM_PARAMETER_H
2#define SYSTEM_PARAMETER_H
3#include <ctime>
4#include <string>
5
7{
8 // ---------------------------------------------------------------
9 // -------------- Parameters ----------------------
10 // ---------------------------------------------------------------
11 int myrank = 0;
12 int nproc = 1;
14 int mypool = 0;
15 int npool = 1;
17 std::time_t start_time = 0;
18
19 // ---------------------------------------------------------------
20 // ------------ parameters not defined in INPUT file -------------
21 // ------------ but decided by INPUT parameters -------------
22 // ---------------------------------------------------------------
32 int nlocal = 0;
33 bool two_fermi = false;
34 bool use_uspp = false;
35 bool dos_setemin = false;
36 bool dos_setemax = false;
37
38 double dq = 0.010; // space between Q points of the reciprocal radial tab
39 int nqx = 10000; // number of points describing reciprocal radial tab
40 int nqxq = 10000; // number of points describing reciprocal radial tab for Q
41
42 int ncx = 0, ncy = 0,
43 ncz = 0;
44 bool out_md_control = false;
45 bool gamma_only_pw = false;
47 bool gamma_only_local = false;
49 std::string global_in_card = "INPUT";
50 std::string global_in_stru = "STRU";
51 std::string global_out_dir = "";
52 std::string global_readin_dir = "";
53 std::string global_stru_dir = "";
54 std::string global_matrix_dir = "";
55 std::string global_wfc_dir = "";
56 // Subdirectories used when out_app_flag == 2
57 std::string global_psi_dir = "";
58 std::string global_chg_dir = "";
59 std::string global_pot_dir = "";
60 std::string global_elf_dir = "";
61 std::string global_dos_dir = "";
62 std::string global_dip_dir = "";
63 std::string global_mat_dir = "";
64 std::string global_band_dir = "";
67 std::string log_file = "log";
68
69 bool deepks_setorb = false;
70 int npol = 1;
71 bool domag = false;
72 bool domag_z = false;
73
74 bool double_grid = false;
75 double uramping = -10.0 / 13.6;
76 std::vector<double> hubbard_u = {};
77 int kpar_lcao = 1;
78 int nbands_l = 0;
79 bool ks_run = false;
80 bool all_ks_run = true;
81
82 bool has_double_data = true;
83 bool has_float_data = false;
84
85 bool search_pbc = true;
86};
87#endif
Definition system_parameter.h:7
int ncy
Definition system_parameter.h:42
bool domag_z
1 : constrain the magnetism to z axis
Definition system_parameter.h:72
bool dos_setemin
true: "dos_emin_ev" is set
Definition system_parameter.h:35
std::string global_dip_dir
dipole directory (DIP/)
Definition system_parameter.h:62
int kpar_lcao
global number of pools for LCAO diagonalization only
Definition system_parameter.h:77
std::string global_readin_dir
global readin directory
Definition system_parameter.h:52
std::string global_stru_dir
global structure directory
Definition system_parameter.h:53
double dq
Definition system_parameter.h:38
int nthread_per_proc
Definition system_parameter.h:13
std::string global_psi_dir
wavefunction directory (PSI/)
Definition system_parameter.h:57
std::string global_wfc_dir
global wavefunction directory
Definition system_parameter.h:55
std::string global_pot_dir
potential directory (POT/)
Definition system_parameter.h:59
std::string global_matrix_dir
global matrix directory
Definition system_parameter.h:54
std::string global_dos_dir
DOS directory (DOS/).
Definition system_parameter.h:61
int nqx
Definition system_parameter.h:39
std::string global_band_dir
band structure directory (BANDS/)
Definition system_parameter.h:64
bool two_fermi
true if "nupdown" is set
Definition system_parameter.h:33
std::string log_file
log file name
Definition system_parameter.h:67
bool out_md_control
true if "out_level" is set
Definition system_parameter.h:44
std::string global_in_card
input file
Definition system_parameter.h:49
int nbands_l
number of bands of each band parallel calculation, same to nbands when bndpar=1
Definition system_parameter.h:78
std::string global_in_stru
stru file
Definition system_parameter.h:50
bool dos_setemax
true: "dos_emax_ev" is set
Definition system_parameter.h:36
double uramping
U-Ramping method (Ry).
Definition system_parameter.h:75
bool all_ks_run
true if only all processes run KS calculation
Definition system_parameter.h:80
bool gamma_only_pw
Definition system_parameter.h:45
int ncx
Definition system_parameter.h:42
std::string global_mat_dir
matrix directory (MAT/)
Definition system_parameter.h:63
std::string global_deepks_label_elec_dir
global directory for DeePKS labels during electronic steps
Definition system_parameter.h:66
bool ks_run
true if current process runs KS calculation
Definition system_parameter.h:79
std::string global_mlkedf_descriptor_dir
global ML KEDF descriptor directory
Definition system_parameter.h:65
bool has_float_data
hamiltonian has float data
Definition system_parameter.h:83
bool use_uspp
true if "uspp" is set
Definition system_parameter.h:34
std::vector< double > hubbard_u
Hubbard Coulomb interaction parameter U (Ry).
Definition system_parameter.h:76
int mypool
Definition system_parameter.h:14
bool search_pbc
whether to search for periodic boundary conditions, force set to true
Definition system_parameter.h:85
bool domag
1 : calculate the magnetism with x, y, z component
Definition system_parameter.h:71
bool double_grid
true if "ndx,ndy,ndz" is larger than "nx,ny,nz"
Definition system_parameter.h:74
bool deepks_setorb
true if "deepks" is set
Definition system_parameter.h:69
std::string global_elf_dir
ELF directory (ELF/).
Definition system_parameter.h:60
bool has_double_data
hamiltonian has double data
Definition system_parameter.h:82
std::string global_chg_dir
charge density directory (CHG/)
Definition system_parameter.h:58
int npol
number of polarization
Definition system_parameter.h:70
int nlocal
Definition system_parameter.h:32
int ncz
three dimension of FFT charge/grid, same as "nx,ny,nz"
Definition system_parameter.h:43
bool gamma_only_local
Definition system_parameter.h:47
int nproc_in_pool
Definition system_parameter.h:16
int nqxq
Definition system_parameter.h:40
std::string global_out_dir
global output directory
Definition system_parameter.h:51
std::time_t start_time
Definition system_parameter.h:17
int myrank
Definition system_parameter.h:11
int nproc
Definition system_parameter.h:12
int npool
Definition system_parameter.h:15