Hi there,
I wanted to use the @ode_def macro from the ParametrizedFunctions package inside some custom function. However, I get a syntax error saying: syntax: "struct" expression not at top level
.
Here is a minimum working example:
using ParameterizedFunctions
function mwe()
f = @ode_def begin
dx=a
end a
a=1j
end
I run it in atom 1.38.1 using julia 1.1.0. on an ubuntu linux.
What is it I am doing wrong?
Thanks for your help
G