You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Unrecognized symbol $(diff_var) was used as a variable in an equation: \"$eq\". Since the @require_declaration flag is set, all variables in equations must be explicitly declared via @variables, @species, or @parameters."))
# If the default differential (`D`) is used, record that it should be decalred later on.
726
+
if!in(eq, excluded_syms) &&find_D_call(eq)
727
+
requiredec &&throw(UndeclaredSymbolicError(
728
+
"Unrecognized symbol D was used as a differential in an equation: \"$eq\". Since the @require_declaration flag is set, all differentials in equations must be explicitly declared using the @differentials option."))
729
+
add_default_diff =true
730
+
excluded_syms = [excluded_syms; :D]
745
731
end
746
732
747
733
# Any undecalred symbolic variables encountered should be extracted as variables.
734
+
# Additional step required to handle `requiredec = true` (to be improved later).
if requiredec &&length(prev_vars_extracted) <length(vars_extracted)
738
+
throw(UndeclaredSymbolicError(
739
+
"Unrecognized symbols $(setdiff(vars_extracted, prev_vars_extracted)) was used in an equation: \"$eq\". Since the flag @require_declaration is set, all variables must be declared with the @species, @parameters, or @variables macros."))
0 commit comments