Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed Dec 2, 2023
1 parent bfb0007 commit 4bdc92c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/src/catalyst_functionality/dsl_description.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ nothing #hide
It is possible to add several equations to the model. In this case, each have a separate line. E.g. to keep track of a supply of nutrition ($N$) in the growth media, we can use:
```@example eqs1
rn = @reaction_network begin
@parameters k
@equations begin
D(V) ~ G
D(N) ~ -G
Expand Down
6 changes: 6 additions & 0 deletions test/dsl/dsl_options.jl
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,12 @@ let
(p,d), 0 <--> S
end

# Differential with respect to a species.
@test_throws Exception @eval @reaction_network begin
@equations D(S) ~ 1 - S
(p,d), 0 <--> S
end

# System with derivatives with respect to several independent variables.
@test_throws Exception @eval @reaction_network begin
@ivs s t
Expand Down

0 comments on commit 4bdc92c

Please sign in to comment.