@cache
macro generates code with OrdinaryDiffEq namespace
#2158
Labels
@cache
macro generates code with OrdinaryDiffEq namespace
#2158
Describe the bug 🐞
@cache
macro generates code with OrdinaryDiffEq namespace.Expected behavior
No error on using
@cache
on our own structs.Minimal Reproducible Example 👇
Following the documentation on adding algorithms, we run:
Error & Stacktrace⚠️
Which produces the following error:
Additional context
Macroexpand to the rescue:
Which shows that the macro generates
full_cache(var"#329#c"::OrdinaryDiffEq.RK_ALGCache)
, withRK_ALGCache
defined in theOrdinaryDiffEq
namespace, and not inMain
(where the example is run), leading to theUndefVarError
.The text was updated successfully, but these errors were encountered: