Package hedge :: Package timestep
[hide private]
[frames] | no frames]

Source Code for Package hedge.timestep

 1  # -*- coding: utf8 -*- 
 2   
 3  """ODE solvers: timestepping support, such as Runge-Kutta, Adams-Bashforth, etc.""" 
 4   
 5  from __future__ import division 
 6   
 7  __copyright__ = "Copyright (C) 2007 Andreas Kloeckner" 
 8   
 9  __license__ = """ 
10  This program is free software: you can redistribute it and/or modify 
11  it under the terms of the GNU General Public License as published by 
12  the Free Software Foundation, either version 3 of the License, or 
13  (at your option) any later version. 
14   
15  This program is distributed in the hope that it will be useful, 
16  but WITHOUT ANY WARRANTY; without even the implied warranty of 
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
18  GNU General Public License for more details. 
19   
20  You should have received a copy of the GNU General Public License 
21  along with this program.  If not, see U{http://www.gnu.org/licenses/}. 
22  """ 
23   
24   
25   
26  import numpy 
27  import numpy.linalg as la 
28  from pytools import memoize 
29   
30   
31   
32   
33  from hedge.timestep.rk4 import RK4TimeStepper 
34  from hedge.timestep.ab import AdamsBashforthTimeStepper 
35