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 // ---------------------------------------------------------------
23 int nlocal = 0;
24 bool two_fermi = false;
25 bool use_uspp = false;
26 bool dos_setemin = false;
27 bool dos_setemax = false;
28
29 double dq = 0.010; // space between Q points of the reciprocal radial tab
30 int nqx = 10000; // number of points describing reciprocal radial tab
31 int nqxq = 10000; // number of points describing reciprocal radial tab for Q
32
33 int ncx = 0, ncy = 0,
34 ncz = 0;
35 bool out_md_control = false;
36 bool gamma_only_pw = false;
38 bool gamma_only_local = false;
40 std::string global_in_card = "INPUT";
41 std::string global_in_stru = "STRU";
42 std::string global_out_dir = "";
43 std::string global_readin_dir = "";
44 std::string global_stru_dir = "";
45 std::string global_matrix_dir = "";
46 std::string global_wfc_dir = "";
49 std::string log_file = "log";
50
51 bool deepks_setorb = false;
52 int npol = 1;
53 bool domag = false;
54 bool domag_z = false;
55
56 bool double_grid = false;
57 double uramping = -10.0 / 13.6;
58 std::vector<double> hubbard_u = {};
59 int kpar_lcao = 1;
60 int nbands_l = 0;
61 bool ks_run = false;
62 bool all_ks_run = true;
63
64 bool has_double_data = true;
65 bool has_float_data = false;
66
67 bool search_pbc = true;
68};
69#endif
Definition system_parameter.h:7
int ncy
Definition system_parameter.h:33
bool domag_z
1 : constrain the magnetism to z axis
Definition system_parameter.h:54
bool dos_setemin
true: "dos_emin_ev" is set
Definition system_parameter.h:26
int kpar_lcao
global number of pools for LCAO diagonalization only
Definition system_parameter.h:59
std::string global_readin_dir
global readin directory
Definition system_parameter.h:43
std::string global_stru_dir
global structure directory
Definition system_parameter.h:44
double dq
Definition system_parameter.h:29
int nthread_per_proc
Definition system_parameter.h:13
std::string global_wfc_dir
global wavefunction directory
Definition system_parameter.h:46
std::string global_matrix_dir
global matrix directory
Definition system_parameter.h:45
int nqx
Definition system_parameter.h:30
bool two_fermi
true if "nupdown" is set
Definition system_parameter.h:24
std::string log_file
log file name
Definition system_parameter.h:49
bool out_md_control
true if "out_level" is set
Definition system_parameter.h:35
std::string global_in_card
input file
Definition system_parameter.h:40
int nbands_l
number of bands of each band parallel calculation, same to nbands when bndpar=1
Definition system_parameter.h:60
std::string global_in_stru
stru file
Definition system_parameter.h:41
bool dos_setemax
true: "dos_emax_ev" is set
Definition system_parameter.h:27
double uramping
U-Ramping method (Ry)
Definition system_parameter.h:57
bool all_ks_run
true if only all processes run KS calculation
Definition system_parameter.h:62
bool gamma_only_pw
Definition system_parameter.h:36
int ncx
Definition system_parameter.h:33
std::string global_deepks_label_elec_dir
global directory for DeePKS labels during electronic steps
Definition system_parameter.h:48
bool ks_run
true if current process runs KS calculation
Definition system_parameter.h:61
std::string global_mlkedf_descriptor_dir
global ML KEDF descriptor directory
Definition system_parameter.h:47
bool has_float_data
hamiltonian has float data
Definition system_parameter.h:65
bool use_uspp
true if "uspp" is set
Definition system_parameter.h:25
std::vector< double > hubbard_u
Hubbard Coulomb interaction parameter U (Ry)
Definition system_parameter.h:58
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:67
bool domag
1 : calculate the magnetism with x, y, z component
Definition system_parameter.h:53
bool double_grid
true if "ndx,ndy,ndz" is larger than "nx,ny,nz"
Definition system_parameter.h:56
bool deepks_setorb
true if "deepks" is set
Definition system_parameter.h:51
bool has_double_data
hamiltonian has double data
Definition system_parameter.h:64
int npol
number of polarization
Definition system_parameter.h:52
int nlocal
total number of local basis.
Definition system_parameter.h:23
int ncz
three dimension of FFT charge/grid, same as "nx,ny,nz"
Definition system_parameter.h:34
bool gamma_only_local
Definition system_parameter.h:38
int nproc_in_pool
Definition system_parameter.h:16
int nqxq
Definition system_parameter.h:31
std::string global_out_dir
global output directory
Definition system_parameter.h:42
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