Skip to content

Conversation

@YingboMa
Copy link
Member

This PR fixes the following error

julia> f = @ode_def begin
         dx = a*x - b*x*y
         dy = -c*y + d*x*y
       end a b c d
#375 (generic function with 2 methods)

julia> f([0.1,0.2], [1,2], [1,2,3,4], 1)
ERROR: UndefVarError: a not defined
Stacktrace:
 [1] macro expansion at ./REPL[19]:2 [inlined]
 [2] (::getfield(Main, Symbol("##213#219")))(::Array{Float64,1}, ::Array{Int64,1}, ::Array{Int64,1}, ::Int64) at /home/scheme/.julia/dev/ParameterizedFunctions/src/ode_def_opts.jl:235
 [3] (::getfield(Main, Symbol("##375")){getfield(Main, Symbol("##213#219")),getfield(Main, Symbol("##214#220")),getfield(Main, Symbol("##215#221")),getfield(Main, Symbol("##216#222")),getfield(Main, Symbol("##217#223")),getfield(Main, Symbol("##218#224")),Expr,Expr})(::Array{Float64,1}, ::Array{Int64,1}, ::Array{Int64,1}, ::Int64) at /home/scheme/.julia/dev/ParameterizedFunctions/src/maketype.jl:82
 [4] top-level scope at none:0

Copy link
Member

@ChrisRackauckas ChrisRackauckas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge when tests pass and we'll re-tag v3.12.0 to this commit.

@YingboMa YingboMa merged commit 23edc27 into master Sep 20, 2018
@YingboMa YingboMa deleted the myb/fix branch September 20, 2018 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants