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

add step!(integ, Δt) #85

Merged
merged 4 commits into from Feb 15, 2018
Merged

add step!(integ, Δt) #85

merged 4 commits into from Feb 15, 2018

Conversation

Datseris
Copy link
Contributor

No description provided.

@ChrisRackauckas
Copy link
Member

@tkf I like this extension better than a separate name, thoughts?

@ChrisRackauckas
Copy link
Member

Just make that dt instead of Δt to match the naming convention. It doesn't actually effect usage though.

@Datseris
Copy link
Contributor Author

Are the individual step! for each package defined within the package? Like e.g. OrdinaryDiffEq? I was expecting to see a simple function step! end in DiffEqBase.

We have to be careful whether we need to add import DiffEqBase: step!

@codecov
Copy link

codecov bot commented Feb 15, 2018

Codecov Report

Merging #85 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
- Coverage   19.48%   19.43%   -0.06%     
==========================================
  Files          34       34              
  Lines        1129     1132       +3     
==========================================
  Hits          220      220              
- Misses        909      912       +3
Impacted Files Coverage Δ
src/integrator_interface.jl 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87d5794...048f080. Read the comment docs.

@ChrisRackauckas
Copy link
Member

Yes, the step! implementations are in the packages, but this doesn't need to know about them since it will just be calling the overloads internally. So this will generically work even though it's defined before the actual implementations.

@Datseris
Copy link
Contributor Author

I like docstrings. I added one! Is it correct?

@coveralls
Copy link

coveralls commented Feb 15, 2018

Coverage Status

Coverage decreased (-0.05%) to 19.435% when pulling 7092d2c on Datseris:patch-1 into 87d5794 on JuliaDiffEq:master.

@ChrisRackauckas
Copy link
Member

Put it on the generic definition at the top.

@ChrisRackauckas ChrisRackauckas merged commit ae7ea5f into SciML:master Feb 15, 2018
@ChrisRackauckas
Copy link
Member

Seems great to me.

Though right after merging it, maybe there should be an arg stop_at_t = false to add a tstop at t+dt (add_tstop!(integ,t+dt)), and it should check >= instead of > to be more robust. @Datseris would you like to PR that to finish it up?

@Datseris
Copy link
Contributor Author

Hi, thanks for merging it.

I won't have time to do the change you suggested today, but if it is a small 4 liner, maybe you can just go ahead and do it?

@Datseris Datseris deleted the patch-1 branch February 15, 2018 17:05
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

Successfully merging this pull request may close these issues.

None yet

3 participants