Skip to content

Commit

Permalink
one more migration tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsas committed Jul 16, 2024
1 parent 0215ee3 commit c44f0dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/v14_migration_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,19 @@ using Catalyst
@variables t
nothing # hide
```
MTKv9 has introduced a standard global time variable, and as such a new, preferred, interface has been developed:
MTKv9 has introduced a standard global time variable, and as such a new interface has been developed:
```@example v14_migration_3
t = default_t()
nothing # hide
```
Note that internally MTK9 actually represents `t` as a parameter, so the old approach should never be used. As the type of `t` is now considered internal to MTK, it should always be declared using the `default_t()` function.

Similarly, the time differential (primarily relevant when creating combined reaction-ODE models) used to be declared through
```@example v14_migration_3
D = Differential(t)
nothing # hide
```
where the preferred method is now
where now one must use
```@example v14_migration_3
D = default_time_deriv()
nothing # hide
Expand Down

0 comments on commit c44f0dd

Please sign in to comment.