From d161a89e489a0f18543be421ee004d89298d25aa Mon Sep 17 00:00:00 2001 From: Scott Rohde Date: Sat, 9 Nov 2019 10:27:04 -0600 Subject: [PATCH] Fix to harmonic_oscillator.cpp Put `make_const_time_iterator_begin` arguments `t_end` and `dt` in proper order. --- examples/harmonic_oscillator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/harmonic_oscillator.cpp b/examples/harmonic_oscillator.cpp index a1f53c4f..8bd162c1 100644 --- a/examples/harmonic_oscillator.cpp +++ b/examples/harmonic_oscillator.cpp @@ -198,7 +198,7 @@ int main(int /* argc */ , char** /* argv */ ) //[ harm_iterator_const_step] - std::for_each( make_const_step_time_iterator_begin( stepper , harmonic_oscillator, x , 0.0 , 0.1 , 10.0 ) , + std::for_each( make_const_step_time_iterator_begin( stepper , harmonic_oscillator, x , 0.0 , 10.0 , 0.1 ) , make_const_step_time_iterator_end( stepper , harmonic_oscillator, x ) , []( std::pair< const state_type & , const double & > x ) { cout << x.second << " " << x.first[0] << " " << x.first[1] << "\n"; } );