librpa_options.h Source File

librpa_options.h Source File#

LibRPA: librpa_options.h Source File
LibRPA
librpa_options.h
Go to the documentation of this file.
1#pragma once
9
10#include "librpa_enums.h"
11
12// C APIs
13#ifdef __cplusplus
14extern "C" {
15#endif
16
18#define LIBRPA_MAX_STRLEN 200
19
20// NOTE: in case the data layout of LibrpaOptions is changed,
21// its Fortran binding should be adapted accordingly.
22
33typedef struct
34{
35 /* ============================================================================= */
36 /* Common runtime control */
37
40
43
46
49
52
55
58
60 int nfreq;
61
64 double tfgrids_freq_interval;
65 double tfgrids_freq_max;
66 double tfgrids_time_min;
67 double tfgrids_time_interval;
68
69 /* ============================================================================= */
70 /* RPA specific */
71
74
77
78 /* ============================================================================= */
79 /* GW specific */
80
83
86
89
91
98
101
102 /* ============================================================================= */
103 /* LibRI related */
104
107
110
113
116
119
122
125
128
129 /* Output controls */
132
135
138
140
150
157void librpa_set_output_dir(LibrpaOptions *opts, const char *output_dir);
158
159#ifdef __cplusplus
160}
161#endif
Enumeration types and constants for LibRPA.
int LibrpaSwitch
Boolean switch type.
Definition librpa_enums.h:91
int LibrpaVerbose
Verbosity level for runtime output.
Definition librpa_enums.h:107
LibrpaParallelRouting
Parallel routing strategy for distributed memory calculations.
Definition librpa_enums.h:58
LibrpaTimeFreqGrid
Type of time or frequency grid for integration.
Definition librpa_enums.h:76
void librpa_set_output_dir(LibrpaOptions *opts, const char *output_dir)
Set the output directory for LibRPA results.
#define LIBRPA_MAX_STRLEN
Definition librpa_options.h:18
void librpa_init_options(LibrpaOptions *opts)
Initialize runtime options to default values.
Runtime options structure for LibRPA calculations.
Definition librpa_options.h:34
double libri_g0w0_threshold_G
Threshold of real-space Green's function to compute GW correlation self-energy using LibRI.
Definition librpa_options.h:124
LibrpaParallelRouting parallel_routing
Scheme of parallelization.
Definition librpa_options.h:42
double libri_chi0_threshold_C
Threshold of real-space LRI triple coefficients to compute response function using LibRI.
Definition librpa_options.h:106
LibrpaSwitch replace_w_head
Flag of replacing head of screened interaction by macroscopic dielectric function.
Definition librpa_options.h:88
double tfgrids_freq_min
Parameters for time and freqeuncy grids. Different grid types will use none/part/all of the parameter...
Definition librpa_options.h:63
int option_dielect_func
Option of computing dielectric function on imaginary axis.
Definition librpa_options.h:97
double libri_chi0_threshold_G
Threshold of real-space Green's function to compute response function using LibRI.
Definition librpa_options.h:109
LibrpaSwitch use_scalapack_ecrpa
Flag to control whether to use ScaLAPACK to compute RPA correlation energy.
Definition librpa_options.h:76
double vq_threshold
Threshold for real-space Coulomb matrices.
Definition librpa_options.h:48
LibrpaSwitch use_scalapack_gw_wc
Flag of using ScaLAPACK for computing Wc from chi0.
Definition librpa_options.h:85
LibrpaSwitch output_gw_sigc_mat
Output correlation self-energy matrix (reciprocal space, imaginary frequency domain)
Definition librpa_options.h:131
LibrpaSwitch output_gw_sigc_mat_rf
Output correlation self-energy matrix in NAO (real space, imaginary frequency domain)
Definition librpa_options.h:137
int nfreq
Number of time/frequency points.
Definition librpa_options.h:60
LibrpaSwitch output_gw_sigc_mat_rt
Output correlation self-energy matrix in NAO (real space, imaginary time domain)
Definition librpa_options.h:134
double libri_g0w0_threshold_Wc
Threshold of correlation screened Coulomb matrix to compute GW correlation self-energy using LibRI.
Definition librpa_options.h:127
double gf_threshold
Threshold for real-space Green's function in response function calculation.
Definition librpa_options.h:73
char output_dir[LIBRPA_MAX_STRLEN]
Output directory.
Definition librpa_options.h:39
double sqrt_coulomb_threshold
Threshold of eigenvalues to perform square root of Coulomb matrices.
Definition librpa_options.h:100
double libri_exx_threshold_V
Threshold of real-space Coulomb matrices to compute exact exchange using LibRI.
Definition librpa_options.h:118
LibrpaSwitch use_soc
Flag of parsing input and performing calculation in spin-orbit coupling formalism.
Definition librpa_options.h:51
double libri_g0w0_threshold_C
Threshold of real-space LRI triple coefficients to compute GW correlation self-energy using LibRI.
Definition librpa_options.h:121
LibrpaVerbose output_level
Verbose level for output.
Definition librpa_options.h:45
double libri_exx_threshold_C
Threshold of real-space LRI triple coefficients to compute exact exchange using LibRI.
Definition librpa_options.h:112
LibrpaTimeFreqGrid tfgrids_type
Type of time/frequency grids.
Definition librpa_options.h:57
double libri_exx_threshold_D
Threshold of real-space density matrices to compute exact exchange using LibRI.
Definition librpa_options.h:115
int n_params_anacon
Number of parameters for analytic continuation.
Definition librpa_options.h:82
LibrpaSwitch use_kpara_scf_eigvec
Flag to specify parallel distribution of eigenvectors of SCF starting point.
Definition librpa_options.h:54