There was an error while loading. Please reload this page.
2 parents 1a38e7e + 66a5d1b commit ee00743Copy full SHA for ee00743
1 file changed
numerical/solvers/DormandPrince45.hpp
@@ -197,7 +197,10 @@ namespace solvers
197
const StateVector& x, const InputVector& u, T t, T hSuggested)
198
{
199
return detail::DpStepImpl<T, StateSize>(
200
- [&](const StateVector& sx, T st) { return system_.Derivative(sx, u, st); },
+ [&](const StateVector& sx, T st)
201
+ {
202
+ return system_.Derivative(sx, u, st);
203
+ },
204
x, t, hSuggested, absTol_, relTol_, hMin_, hMax_, fsalValid_, lastStage_);
205
}
206
@@ -222,7 +225,10 @@ namespace solvers
222
225
DormandPrince45<T, StateSize, 0>::Step(const StateVector& x, T t, T hSuggested)
223
226
224
227
- [&](const StateVector& sx, T st) { return system_.Derivative(sx, st); },
228
229
230
+ return system_.Derivative(sx, st);
231
232
233
234
0 commit comments