Skip to content

Commit

Permalink
Merge branch 'dsl-no-infer-docs' of github.com:vyudu/Catalyst.jl into…
Browse files Browse the repository at this point in the history
… dsl-no-infer-docs
  • Loading branch information
vyudu committed Nov 21, 2024
2 parents 38f5455 + a50d572 commit 79dfbe4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/src/model_creation/dsl_advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ rn = @reaction_network begin
(k1, k2), A <--> B
end
```
Running the code above will yield the following error: `LoadError: UndeclaredSymbolicError: Unrecognized variables A detected in reaction expression: "((k1, k2), A <--> B)". Since the flag @require_declaration is declared, all species must be explicitly declared with the @species macro.`

Running the code above will yield the following error:
```
LoadError: UndeclaredSymbolicError: Unrecognized variables A detected in reaction expression: "((k1, k2), A <--> B)". Since the flag @require_declaration is declared, all species must be explicitly declared with the @species macro.
```
In order to avoid the error in this case all the relevant species and parameters will have to be declared.
```@example dsl_advanced_require_dec
# The following case will not error.
Expand Down

0 comments on commit 79dfbe4

Please sign in to comment.