GR Engine
A physics engine in curved space-time
 All Classes Files Functions Variables
dpintegrator.h
Go to the documentation of this file.
1 #ifndef __DPINTEGRATOR__
2 #define __DPINTEGRATOR__
3 
8  #include "numeric.h"
9 
15 class DPIntegrator : public Integrator
16 {
17  double maxErr;
18  double minStep;
19  double maxStep;
20 
21  StateVector lastDerivative, lastState;
22  DiffEq* lastEq;
23 public:
25 
30  DPIntegrator(double maxErr = 0.000001, double stepSize = 0.01, double minStep = 0.0001, double maxStep = 0.1);
32  ~DPIntegrator();
34 
38  StateVector next(StateVector state, DiffEq* equation, double step = 0.0);
39 
41  double getMaxErr();
43  double getMinStep();
45  double getMaxStep();
46 
48  void setMaxErr(double);
50  void setMinStep(double);
52  void setMaxStep(double);
53 };
54 
55 #endif
56