Skip to content

Commit 2131023

Browse files
committed
[feat] add det manip control flags for cthyb
these flags where introduced in triqs detmanip exposed in cthyb
1 parent af5ff13 commit 2131023

4 files changed

Lines changed: 21 additions & 0 deletions

File tree

python/solid_dmft/dmft_tools/solvers/cthyb_interface.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def __init__(
6868
# Separately stores all params that go into solve() call of solver
6969
self.triqs_solver_params = {}
7070
keys_to_pass = (
71+
'det_init_size',
72+
'det_n_operations_before_check',
73+
'det_precision_warning',
74+
'det_precision_error',
7175
'imag_threshold',
7276
'length_cycle',
7377
'max_time',

python/solid_dmft/io_tools/default.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ crm_dyson_solver = false
6868
crm_dlr_wmax = "<none>"
6969
crm_dlr_eps = "<none>"
7070
delta_interface = false
71+
det_init_size = 100
72+
det_n_operations_before_check = 100
73+
det_precision_warning = 1e-8
74+
det_precision_error = 1e-5
7175
diag_delta = false
7276
fit_max_moment = "<none>"
7377
fit_max_n = "<none>"

python/solid_dmft/io_tools/documentation.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,14 @@ crm_dlr_eps : float, default = None
231231
Set to dlr_eps if crm_dlr_eps = None.
232232
delta_interface : bool, default = False
233233
use delta interface in cthyb instead of input G0
234+
det_init_size : int, default = 100
235+
The maximum size of the determinant matrix before a resize
236+
det_n_operations_before_check : int, default = 100
237+
Max number of ops before the test of deviation of the det, M^-1 is performed.
238+
det_precision_warning : float, default = 1e-8
239+
Threshold for determinant precision warnings
240+
det_precision_error : float, default = 1e-5
241+
Threshold for determinant precision error
234242
diag_delta : bool, default = False
235243
approximate the hybridization function as diagonal when using the delta interface
236244
fit_max_moment : int, default = None

test/python/svo_cthyb_basic_tf/dmft_config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,10 @@ fit_max_moment = 4
4545
fit_min_w = 4
4646
fit_max_w = 10
4747

48+
det_init_size = 80
49+
det_n_operations_before_check = 40
50+
det_precision_warning = 1e-9
51+
det_precision_error = 1e-6
52+
4853
[advanced]
4954
dc_orb_shift = [-0.1, 0.2, 0.1]

0 commit comments

Comments
 (0)