-
-
Notifications
You must be signed in to change notification settings - Fork 210
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 module to RuntimeGeneratedFunctions call #2259
Conversation
src/systems/pde/pdesystem.jl
Outdated
p = ps isa SciMLBase.NullParameters ? [] : map(a -> a.first, ps) | ||
args = vcat(DestructuredArgs(p), args) | ||
ex = Func(args, [], eq.rhs) |> toexpr | ||
eq.lhs => drop_expr(RuntimeGeneratedFunction(@__MODULE__, @__MODULE__, ex)) |
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.
This should not hardcoded. Also, I think only the first argument is necessary for correct precompilation caching.
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.
This actually doesn't fix the bug I have, I may need to pass down @MODULE from PDESysLibrary as the cache module, this function needs all 3 arguments though
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 can use the @RuntimeGeneratedFunction
macro which only needs two.
How do you run your formatter? Also, do you have a forced CRLF setting if you are using Windows? |
It appears to run automatically with VSCode, I am on MacOS |
Have you tried to run it in a vanilla Julia REPL that you start from a terminal? |
Again I think my formatter is broken as it keeps trying to format your stuff, don't know what's going on here