Giter VIP home page Giter VIP logo

Comments (9)

ChrisRackauckas avatar ChrisRackauckas commented on June 11, 2024 1

Also for me the test in line 44 fails because the return code is Terminated not Success

Yes, looks like that never got updated.

Can it be that save_first=false does not take effect (also I do not find it in the documentation)?

Sorry, save_start=false.

On another note can you tell me whether there is a way to run the tests directly from my local copy of the repo, because the way I do it now (adding the repo in a julia REPL and then running the test) seems unnecessarily complicated.

]dev SteadyStateDiffEq and now you edit in your .julia folder, and then ]test SteadyStateDiffEq.

from steadystatediffeq.jl.

ChrisRackauckas avatar ChrisRackauckas commented on June 11, 2024

Yes, it probably makes sense to handle the output more nicely here, with save_everystep=false and save_first=false defaults (which can then be overridden to see the trajectory for debugging).

from steadystatediffeq.jl.

benneti avatar benneti commented on June 11, 2024

I can create a PR if you want me to (and you think it is worth it only to change two keyword arguments)

from steadystatediffeq.jl.

ChrisRackauckas avatar ChrisRackauckas commented on June 11, 2024

I think it's worth it. Thanks!

from steadystatediffeq.jl.

benneti avatar benneti commented on June 11, 2024

Can it be that save_first=false does not take effect (also I do not find it in the documentation)?
Or did you mean that I should implement this as a keyword argument there and if it is false we just return sol.u[end]?

Also for me the test in line 44 fails because the return code is Terminated not Success, which is also what I would expect because the callback terminates the integration before reaching the final time.

On another note can you tell me whether there is a way to run the tests directly from my local copy of the repo, because the way I do it now (adding the repo in a julia REPL and then running the test) seems unnecessarily complicated.

from steadystatediffeq.jl.

benneti avatar benneti commented on June 11, 2024

Maybe it would also make sense to change the terminated retcode to success such that whether one uses the rootfinding or dynamical approach success states that the steady state was found.

from steadystatediffeq.jl.

ChrisRackauckas avatar ChrisRackauckas commented on June 11, 2024

Yes. Just use the utility function DiffEqBase.solution_new_retcode

from steadystatediffeq.jl.

benneti avatar benneti commented on June 11, 2024

Do you think testing whether the derivative is roughly 0 is necessary or is it fine to assume the user does not use another Callback that terminates the integration while using this problem type?

from steadystatediffeq.jl.

ChrisRackauckas avatar ChrisRackauckas commented on June 11, 2024

Oh yes, checking the derivative before calling it a success is probably a good idea

from steadystatediffeq.jl.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.