Skip to content

Commit c3dcdb7

Browse files
fix docstring
1 parent 0870588 commit c3dcdb7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/build_function.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,6 @@ end
463463
get_varnumber(varop::Operation,vars::Vector{Operation}) = findfirst(x->isequal(x,varop),vars)
464464
get_varnumber(varop::Operation,vars::Vector{<:Variable}) = findfirst(x->isequal(x,varop.op),vars)
465465

466-
function numbered_expr(O::Equation,args...;kwargs...)
467-
:($(numbered_expr(O.lhs,args...;kwargs...)) = $(numbered_expr(O.rhs,args...;kwargs...)))
468-
end
469-
470466
function numbered_expr(O::Operation,args...;varordering = args[1],offset = 0,
471467
lhsname=gensym("du"),rhsnames=[gensym("MTK") for i in 1:length(args)])
472468
if isa(O.op, ModelingToolkit.Variable)
@@ -499,7 +495,7 @@ Build function target: CTarget
499495
function _build_function(target::CTarget, eqs::Array{<:Equation}, args...;
500496
conv = simplified_expr, expression = Val{true},
501497
fname = :diffeqf,
502-
lhsname=:du,rhsnames=[Symbol("RHS$i") for i in 1:length(args)],
498+
lhsname=:du,rhsnames=[Symbol("RHS\$i") for i in 1:length(args)],
503499
libpath=tempname(),compiler=:gcc)
504500
```
505501

0 commit comments

Comments
 (0)