mirror of
https://github.com/triqs/dft_tools
synced 2024-09-01 16:53:43 +02:00
added omega_max in the solver initialisation
This commit is contained in:
parent
bc2f470d21
commit
6fadfecf33
@ -57,7 +57,7 @@ class SolverMultiBand(Solver):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, beta, n_orb, gf_struct = False, map = False):
|
def __init__(self, beta, n_orb, gf_struct = False, map = False, omega_max = None):
|
||||||
|
|
||||||
self.n_orb = n_orb
|
self.n_orb = n_orb
|
||||||
|
|
||||||
@ -71,7 +71,12 @@ class SolverMultiBand(Solver):
|
|||||||
self.map = {'up' : ['up' for v in range(n_orb)], 'down' : ['down' for v in range(n_orb)]}
|
self.map = {'up' : ['up' for v in range(n_orb)], 'down' : ['down' for v in range(n_orb)]}
|
||||||
|
|
||||||
# now initialize the solver with the stuff given above:
|
# now initialize the solver with the stuff given above:
|
||||||
|
if (omega_max is None):
|
||||||
Solver.__init__(self, beta = beta, gf_struct = gf_struct)
|
Solver.__init__(self, beta = beta, gf_struct = gf_struct)
|
||||||
|
else:
|
||||||
|
n_w = int(omega_max*beta/(2.*numpy.pi))
|
||||||
|
Solver.__init__(self, beta = beta, gf_struct = gf_struct, n_w = n_w)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def solve(self, U_interact=None, J_hund=None, use_spinflip=False,
|
def solve(self, U_interact=None, J_hund=None, use_spinflip=False,
|
||||||
|
Loading…
Reference in New Issue
Block a user