Skip to content

Commit

Permalink
Add some more parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenke committed Nov 10, 2023
1 parent 4c8c193 commit 7bc718e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/solid_dmft/read_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@
'used': True},

'beta': {'converter': float, 'valid for': lambda x, _: x > 0,
'used': lambda params: params['general']['solver_type'] in ['cthyb', 'ctint', 'inchworm', 'hubbardI','ctseg','hartree']},
'used': lambda params: params['general']['solver_type'] in ['cthyb', 'ctint', 'inchworm', 'hubbardI', 'ctseg', 'w2dyn_cthyb','hartree']},

'n_iter_dmft': {'converter': int, 'valid for': lambda x, _: x >= 0, 'used': True},

Expand All @@ -518,7 +518,7 @@
'cpa_x': {'converter': lambda s: list(map(float, s.split(','))),
'used': lambda params: params['general']['dc'] and params['general']['dc_type'] == 4},

'solver_type': {'valid for': lambda x, _: x in ['cthyb', 'ctint', 'ftps', 'hubbardI','ctseg', 'hartree'],
'solver_type': {'valid for': lambda x, _: x in ['cthyb', 'ctint', 'ftps', 'hubbardI', 'ctseg', 'w2dyn_cthyb', 'hartree'],
'used': True},


Expand All @@ -527,10 +527,10 @@
and (params['solver']['measure_G_l'] or params['solver']['legendre_fit'])},

'n_iw': {'converter': int, 'valid for': lambda x, _: x > 0,
'used': lambda params: params['general']['solver_type'] in ['cthyb', 'ctint', 'inchworm', 'hubbardI','ctseg','hartree'], 'default': 1025},
'used': lambda params: params['general']['solver_type'] in ['cthyb', 'ctint', 'inchworm', 'hubbardI', 'ctseg', 'w2dyn_cthyb','hartree'], 'default': 1025},

'n_tau': {'converter': int, 'valid for': lambda x, _: x > 0,
'used': lambda params: params['general']['solver_type'] in ['cthyb', 'ctint', 'inchworm', 'hubbardI','ctseg','hartree'], 'default': 10001},
'used': lambda params: params['general']['solver_type'] in ['cthyb', 'ctint', 'inchworm', 'hubbardI', 'ctseg', 'w2dyn_cthyb','hartree'], 'default': 10001},

'n_w': {'converter': int, 'valid for': lambda x, _: x > 0,
'used': lambda params: params['general']['solver_type'] in ['ftps', 'hubbardI', 'hartree'], 'default': 5001},
Expand Down Expand Up @@ -662,12 +662,12 @@
# TODO: used for which solvers? Generalize to real freq. solvers without maxent?
'mu_gap_gb2_threshold': {'converter': float,
'valid for': lambda x, _: x == 'none' or x > 0 or np.isclose(x, 0),
'used': lambda params: params['general']['solver_type'] in ['cthyb', 'ctint','ctseg'],
'used': lambda params: params['general']['solver_type'] in ['cthyb', 'ctint', 'ctseg', 'w2dyn_cthyb'],
'default': 'none'},

'mu_gap_occ_deviation': {'converter': float,
'valid for': lambda x, _: x == 'none' or x > 0 or np.isclose(x, 0),
'used': lambda params: (params['general']['solver_type'] in ['cthyb', 'ctint','ctseg']
'used': lambda params: (params['general']['solver_type'] in ['cthyb', 'ctint', 'ctseg', 'w2dyn_cthyb']
and params['general']['mu_gap_gb2_threshold'] != 'none'),
'default': 'none'},

Expand Down Expand Up @@ -737,7 +737,7 @@
'used': lambda params: params['general']['solver_type'] in ['cthyb']},

'delta_interface': {'converter': BOOL_PARSER, 'default': False,
'used': lambda params: params['general']['solver_type'] in ['cthyb']},
'used': lambda params: params['general']['solver_type'] in ['cthyb', 'wd2yn_cthyb']},

'measure_G_tau': {'converter': BOOL_PARSER, 'default': True,
'used': lambda params: params['general']['solver_type'] in ['hubbardI', 'ctseg', 'w2dyn_cthyb']},
Expand Down Expand Up @@ -799,7 +799,7 @@
'default': None},

'legendre_fit': {'converter': BOOL_PARSER,
'used': lambda params: params['general']['solver_type'] in ['cthyb','ctseg'],
'used': lambda params: params['general']['solver_type'] in ['cthyb', 'ctseg', 'w2dyn_cthyb'],
'default': False},

'loc_n_min': {'converter': int, 'valid for': lambda x, _: x >= 0,
Expand Down

0 comments on commit 7bc718e

Please sign in to comment.