Skip to content

Commit 66a5d1b

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 94ee38c commit 66a5d1b

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
@@ -201,7 +201,10 @@ namespace solvers
201201
const StateVector& x, const InputVector& u, T t, T hSuggested)
202202
{
203203
return detail::DpStepImpl<T, StateSize>(
204-
[&](const StateVector& sx, T st) { return system_.Derivative(sx, u, st); },
204+
[&](const StateVector& sx, T st)
205+
{
206+
return system_.Derivative(sx, u, st);
207+
},
205208
x, t, hSuggested, absTol_, relTol_, hMin_, hMax_, fsalValid_, lastStage_);
206209
}
207210

@@ -230,7 +233,10 @@ namespace solvers
230233
DormandPrince45<T, StateSize, 0>::Step(const StateVector& x, T t, T hSuggested)
231234
{
232235
return detail::DpStepImpl<T, StateSize>(
233-
[&](const StateVector& sx, T st) { return system_.Derivative(sx, st); },
236+
[&](const StateVector& sx, T st)
237+
{
238+
return system_.Derivative(sx, st);
239+
},
234240
x, t, hSuggested, absTol_, relTol_, hMin_, hMax_, fsalValid_, lastStage_);
235241
}
236242

0 commit comments

Comments
 (0)