@@ -50,17 +50,17 @@ class TimeStepper{
50
50
bool storeFWD; /* Flag that determines if primal states should be stored during forward evaluation */
51
51
52
52
TimeStepper ();
53
- TimeStepper (MapParam config, MasterEq* mastereq_, int ntime_, double total_time_, Output* output_, bool storeFWD_);
53
+ TimeStepper (MasterEq* mastereq_, int ntime_, double total_time_, Output* output_, bool storeFWD_);
54
54
virtual ~TimeStepper ();
55
55
56
56
/* Return the state at a certain time index */
57
- Vec getState (int tindex);
57
+ Vec getState (size_t tindex);
58
58
59
59
/* Solve the ODE forward in time with initial condition rho_t0. Return state at final time step */
60
60
Vec solveODE (int initid, Vec rho_t0);
61
61
62
62
/* Solve the adjoint ODE backwards in time from terminal condition rho_t0_bar */
63
- void solveAdjointODE (int initid, Vec rho_t0_bar, Vec finalstate, double Jbar_penalty, double Jbar_penalty_dpdm, double Jbar_penalty_energy);
63
+ void solveAdjointODE (Vec rho_t0_bar, Vec finalstate, double Jbar_penalty, double Jbar_penalty_dpdm, double Jbar_penalty_energy);
64
64
65
65
/* evaluate the penalty integral term */
66
66
double penaltyIntegral (double time, const Vec x);
@@ -84,7 +84,7 @@ class TimeStepper{
84
84
class ExplEuler : public TimeStepper {
85
85
Vec stage;
86
86
public:
87
- ExplEuler (MapParam config, MasterEq* mastereq_, int ntime_, double total_time_, Output* output_, bool storeFWD_);
87
+ ExplEuler (MasterEq* mastereq_, int ntime_, double total_time_, Output* output_, bool storeFWD_);
88
88
~ExplEuler ();
89
89
90
90
/* Evolve state forward from tstart to tstop */
@@ -116,7 +116,7 @@ class ImplMidpoint : public TimeStepper {
116
116
Vec tmp, err; /* Auxiliary vector for applying the neuman iterations */
117
117
118
118
public:
119
- ImplMidpoint (MapParam config, MasterEq* mastereq_, int ntime_, double total_time_, LinearSolverType linsolve_type_, int linsolve_maxiter_, Output* output_, bool storeFWD_);
119
+ ImplMidpoint (MasterEq* mastereq_, int ntime_, double total_time_, LinearSolverType linsolve_type_, int linsolve_maxiter_, Output* output_, bool storeFWD_);
120
120
~ImplMidpoint ();
121
121
122
122
@@ -140,7 +140,7 @@ class CompositionalImplMidpoint : public ImplMidpoint {
140
140
int order;
141
141
142
142
public:
143
- CompositionalImplMidpoint (MapParam config, int order_, MasterEq* mastereq_, int ntime_, double total_time_, LinearSolverType linsolve_type_, int linsolve_maxiter_, Output* output_, bool storeFWD_);
143
+ CompositionalImplMidpoint (int order_, MasterEq* mastereq_, int ntime_, double total_time_, LinearSolverType linsolve_type_, int linsolve_maxiter_, Output* output_, bool storeFWD_);
144
144
~CompositionalImplMidpoint ();
145
145
146
146
void evolveFWD (const double tstart, const double tstop, Vec x);
0 commit comments