Skip to content

Commit ee00743

Browse files
merge main
2 parents 1a38e7e + 66a5d1b commit ee00743

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

numerical/solvers/DormandPrince45.hpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ namespace solvers
197197
const StateVector& x, const InputVector& u, T t, T hSuggested)
198198
{
199199
return detail::DpStepImpl<T, StateSize>(
200-
[&](const StateVector& sx, T st) { return system_.Derivative(sx, u, st); },
200+
[&](const StateVector& sx, T st)
201+
{
202+
return system_.Derivative(sx, u, st);
203+
},
201204
x, t, hSuggested, absTol_, relTol_, hMin_, hMax_, fsalValid_, lastStage_);
202205
}
203206

@@ -222,7 +225,10 @@ namespace solvers
222225
DormandPrince45<T, StateSize, 0>::Step(const StateVector& x, T t, T hSuggested)
223226
{
224227
return detail::DpStepImpl<T, StateSize>(
225-
[&](const StateVector& sx, T st) { return system_.Derivative(sx, st); },
228+
[&](const StateVector& sx, T st)
229+
{
230+
return system_.Derivative(sx, st);
231+
},
226232
x, t, hSuggested, absTol_, relTol_, hMin_, hMax_, fsalValid_, lastStage_);
227233
}
228234

0 commit comments

Comments
 (0)