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
Copy file name to clipboardExpand all lines: HISTORY.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ end
29
29
@equationsD(D(V)) ~1
30
30
end
31
31
```
32
-
Please note that this cannot be used at the same time as `D` is used to represent a species, variable, or parameter.
32
+
Please note that this cannot be used at the same time as `D` is used to represent a species, variable, or parameter (including is these are implicitly designated as such by e.g. appearing as a reaction reactant).
33
33
- Array symbolics support is more consistent with ModelingToolkit v9. Parameter
34
34
arrays are no longer scalarized by Catalyst, while species and variables
35
35
arrays still are (as in ModelingToolkit). As such, parameter arrays should now
@@ -725,8 +725,7 @@ function read_equations_options(options, syms_declared; requiredec = false)
725
725
end
726
726
727
727
# If the default differential (`D`) is used, record that it should be decalred later on.
728
-
729
-
if!in(eq, syms_declared) &&find_D_call(eq)
728
+
if (:D∉union(syms_declared, parameters_extracted)) &&find_D_call(eq)
730
729
requiredec &&throw(UndeclaredSymbolicError(
731
730
"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."))
0 commit comments