-
-
Notifications
You must be signed in to change notification settings - Fork 222
explicit RK docstrings #1866
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
explicit RK docstrings #1866
Conversation
src/algorithms/explicit_rk.jl
Outdated
start_docstring * description * end_docstring | ||
end | ||
|
||
@doc explicit_rk_docstring("The second order Heun's method. Uses embedded Euler method for adaptivity.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks nice!
@ChrisRackauckas it was working in old MTK when we split the package. |
Do you perhaps know the solution to the above problem @mortenpi? |
src/algorithms/explicit_rk.jl
Outdated
function explicit_rk_docstring(description::String) | ||
start_docstring = """ | ||
```julia | ||
$FUNCTIONNAME(; stage_limiter! = OrdinaryDiffEq.trivial_limiter!, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're literally interpolating the string()
value of the FUNCTIONNAME
object into the string here, hence why it doesn't work. DocStringExtensions takes advantage of the fact that string interpolation in macro calls / docstrings is special, which is how it works in @doc "$FUNCTIONNAME ..." foo
situations.
I don't see any way to make this work with DocStringExtensions, but you could, of course, work around it by passing the function name as an extra parameter to explicit_rk_docstring
. I would suggest opening an issue at DocStringExtensions though, since this is an interesting case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks kind of like what @template
is for perhaps. If that's stretching what the template macro can actually handle currently it may be possible to improve it's features to handle this case better.
@ChrisRackauckas What does williamson_condition do in ORK256? |
|
662e2e1
to
e80344c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
This pull request is too large for automated review.
Reviewed with AI Maintainer
@ChrisRackauckas Still need input on this and then RK explicit is done atleast.
|
Test failure looks real |
b0b5f19
to
41246bb
Compare
The v1.9 test failures look real. |
#2008 seems to also have these issues, so probably not related to this PR? |
No, https://buildkite.com/julialang/ordinarydiffeq-dot-jl/builds/2716#0189d070-610b-4e37-8e35-24307a04760b/841-1134 doesn't show up in the other one. |
That looks fishy https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/5795470854/job/15707118352?pr=1866#step:6:596 . Area all of the test errors known? I know the other ones seem to be from ITP (SciML/DiffEqBase.jl#917 @DaniGlez it would be good to figure out what happened post merge) |
Yeah, looking at the test failure in the |
Integrators_II, yes that's the only one. |
I took a look, it seems that I simply forgot to port the latest bugfixes from the SimpleNonlinearSolve version to the internal DiffEqBase one. I'll PR a fix soon. |
This should fix it, I believe: SciML/DiffEqBase.jl#919 |
No description provided.