Skip to content

Commit b918f48

Browse files
committed
warn that multiplication and derivative may fail...
1 parent 1328896 commit b918f48

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ parameters, and default processes.
1616
- New keyword `warn_default` in `processes_to_mtkmodel`.
1717
- Now `processes_to_mtkmodel` allows for `XDESystems` as elements of the input vector.
1818
- Detection of LHS-variable in `Equation` has been improved significantly.
19-
Now, LHS can be any of: `x`, `Differential(t)(x)`, `Differential(t)(x)*p`, `p*Differential(t)(x)`.
19+
Now, LHS can be any of: `x`, `Differential(t)(x)`, `Differential(t)(x)*p`, `p*Differential(t)(x)`. However, the multiplication versions often fail for unknown reasons.

src/make.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ The model/system is _not_ structurally simplified.
1111
or not having limitations on the left-hand-side (LHS) form.
1212
1. An `Equation`. The LHS format of the equation is limited.
1313
Let `x` be a `@variable` and `p` be a `@parameter`. Then, the LHS can only be one of:
14-
`x`, `Differential(t)(x)`, `Differential(t)(x)*p`, `p*Differential(t)(x)`.
14+
`x`, `Differential(t)(x)`, `Differential(t)(x)*p`, `p*Differential(t)(x)`,
15+
however, the versions with `p` may fail unexpectedly.
1516
Anything else will either error or fail unexpectedly.
1617
2. A vector of the above two, which is then expanded. This allows the convenience of
1718
functions representing a physical process that may require many equations to be defined.

0 commit comments

Comments
 (0)