Skip to content
Snippets Groups Projects
Commit ead72072 authored by Ivan Kondov's avatar Ivan Kondov
Browse files

added liou_params to keyword args to pass params to liouville class

parent 838c2580
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ class Chebyshev(Propagator):
""" Chebyshev propagator for classical particle dynamics """
name = 'chebyshev'
def __init__(self, delta=1.0, lambda_min=None, nterms=None, signed=False,
liouville=LiouvillePowersQP, **kwargs):
liouville=LiouvillePowersQP, liou_params={}, **kwargs):
Propagator.__init__(self, **kwargs)
self.delta = delta
......@@ -36,7 +36,8 @@ class Chebyshev(Propagator):
self.cheb_coef[1:] = self.cheb_coef[1:]*2.
self.iln = liouville(self.nterms, self.syst, scale=self.scale,
shift=self.shift, recursion='chebyshev', sign=sign)
shift=self.shift, recursion='chebyshev',
sign=sign, **liou_params)
def step(self, time, q, p):
""" perform a time step with initial coordinate and momentum """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment