Repository navigation
Expand file tree
/
Copy pathhsolver.h
More file actions
53 lines (44 loc) · 2 KB
/
Copy pathhsolver.h
File metadata and controls
53 lines (44 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef HSOLVER_H
#define HSOLVER_H
#include "source_estate/elecstate.h"
#include "source_hamilt/hamilt.h"
namespace hsolver
{
double set_diagethr_ks(const std::string basis_type,
const std::string esolver_type,
const std::string calculation_in,
const std::string init_chg_in,
const std::string precision_flag_in,
const int istep,
const int iter,
const double drho,
const double pw_diag_thr_init,
const double diag_ethr_in,
const double nelec_in);
double set_diagethr_sdft(const std::string basis_type,
const std::string esolver_type,
const std::string calculation_in,
const std::string init_chg_in,
const int istep,
const int iter,
const double drho,
const double pw_diag_thr_init,
const double diag_ethr_in,
const int nband_in,
const double stoiter_ks_ne_in);
// reset diagethr according to drho and hsolver_error
double reset_diag_ethr(std::ofstream& ofs_running,
const std::string basis_type,
const std::string esolver_type,
const std::string precision_flag_in,
const double hsover_error,
const double drho_in,
const double diag_ethr_in,
const double nelec_in);
// calculate hsolver_error (for sdft, lcao and lcao-in-pw, we suppose the error is zero)
double cal_hsolve_error(const std::string basis_type,
const std::string esolver_type,
const double diag_ethr_in,
const double nelec_in);
} // namespace hsolver
#endif