Skip to content

Commit

Permalink
Fix bug in the generate of observed functions in Julia.
Browse files Browse the repository at this point in the history
  • Loading branch information
AleMorales committed Mar 9, 2015
1 parent ce98757 commit cd28748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegeneration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function create_observed_julia(model::OdeSorted, observed, name)
elseif in(lhs, observed)
c = findin(observed, [lhs])
code *= "const $lhs = " * string(rhs.Expr) * "\n"
code *= "@inbounds obs[$c] = $lhs\n"
code *= "@inbounds obs$c = $lhs\n"
else
code *= lhs * " = " * string(rhs.Expr) * "\n"
end
Expand Down

0 comments on commit cd28748

Please sign in to comment.