Lines Matching refs:ode
43 ode = CE(lambda_) variable
45 J = PETSc.Mat().createDense([ode.n, ode.n], comm=ode.comm)
47 x = PETSc.Vec().createSeq(ode.n, comm=ode.comm)
50 ts = PETSc.TS().create(comm=ode.comm)
54 ts.setIFunction(ode.evalFunction, f)
55 ts.setIJacobian(ode.evalJacobian, J)
65 def __init__(self, ode): argument
66 self.ode = ode
67 self.x = PETSc.Vec().createSeq(ode.n, comm=ode.comm)
70 self.ode.evalSolution(t, self.x)
75 'step %3d t=%8.2e h=%8.2e error=%8.2e' % (k, t, h, e), comm=self.ode.comm
79 ts.setMonitor(Monitor(ode))
82 ode.evalSolution(0.0, x)
85 del ode, J, x, f, ts