Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/onepass.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ function def_fun(e; log=false)
$p_ocp = $pref.PreModel()
$code
$pref.definition!($p_ocp, $ee)
$pref.time_dependence!($p_ocp; autonomous=$p.is_autonomous) # not $(p.xxxx) as this info is known statically
$pref.time_dependence!($p_ocp; autonomous=($p.is_autonomous)) # not $(p.xxxx) as this info is known statically
end

if is_active_backend(:exa)
Expand Down
10 changes: 5 additions & 5 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function subs2(e, x, y, j; k=__symgen(:k))
_ => f
end
end
expr_it(e, foo(x, y, j), x -> x)
return expr_it(e, foo(x, y, j), x -> x)
end

"""
Expand Down Expand Up @@ -163,7 +163,7 @@ function subs3(e, x, y, i, j)
_ => f
end
end
expr_it(e, foo(x, y, i, j), x -> x)
return expr_it(e, foo(x, y, i, j), x -> x)
end

"""
Expand Down Expand Up @@ -210,7 +210,7 @@ function subs2m(e, x, y, j; k=__symgen(:k))
_ => f
end
end
expr_it(e, foo(x, y, j), x -> x)
return expr_it(e, foo(x, y, j), x -> x)
end

"""
Expand Down Expand Up @@ -283,7 +283,7 @@ function replace_call(e, x::Vector{<:Union{Nothing,Symbol}}, t, y)
_ => ee
end
end
expr_it(e, foo(x, t, y), x -> x)
return expr_it(e, foo(x, t, y), x -> x)
end

"""
Expand Down Expand Up @@ -369,7 +369,7 @@ function has(e, x, t)
end
end
end
expr_it(e, foo(x, t), x -> x) == :yes
return expr_it(e, foo(x, t), x -> x) == :yes
end

"""
Expand Down