Skip to content

Commit

Permalink
Update src/dsl.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Isaacson <[email protected]>
  • Loading branch information
vyudu and isaacsas authored Nov 16, 2024
1 parent 56badde commit 4d02ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ function read_equations_options(options, variables_declared; noinfer = false)
if in(diff_var, forbidden_symbols_error)
error("A forbidden symbol ($(diff_var)) was used as an variable in this differential equation: $eq")
elseif (!in(diff_var, variables_declared)) && noinfer
error("Unrecognized symbol $(diff_var) was used as a variable in this differential equation. Since the @no_infer flag is set, all variables in equations must be explicitly declared via @variables, @species, or @parameters.")
error("Unrecognized symbol $(diff_var) was used as a variable in an equation. Since the @no_infer flag is set, all variables in equations must be explicitly declared via @variables, @species, or @parameters.")
else
add_default_diff = true
in(diff_var, variables_declared) || push!(vars_extracted, diff_var)
Expand Down

0 comments on commit 4d02ba2

Please sign in to comment.