Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem about usging integrate_const when end_time euqals to dt #249

Open
CooperBruce opened this issue Dec 16, 2019 · 0 comments
Open

problem about usging integrate_const when end_time euqals to dt #249

CooperBruce opened this issue Dec 16, 2019 · 0 comments

Comments

@CooperBruce
Copy link

CooperBruce commented Dec 16, 2019

i am testing OdeInt under Ubuntu 18.04.
using the offical example code harmonic_oscillator,when i using integrate_const with end_time euqals to dt,coredump occurs,here is the code:

  `state_type x(2);
x[0] = 1.0; // start at x=1.0, p=0.0
x[1] = 0.0;
//[ define_adapt_stepper

double abs_err = 1.0e-10, rel_err = 1.0e-6;
integrate_const(
		make_dense_output(abs_err , rel_err, runge_kutta_dopri5< state_type >()),
		harmonicoscillator::harmonic_oscillator, x, 0.0, 0.001,
		0.001);`

when i use integrate_adaptive instead,it is OK.

is the way i use integrate_const not right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant