Skip to content

Commit

Permalink
Update write to use new t and time_deriv functions with MTKv9
Browse files Browse the repository at this point in the history
  • Loading branch information
sebapersson committed Oct 26, 2024
1 parent 6019b49 commit 85edc4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ function write_reactionsystem(model_SBML_sys::ModelSBMLSystem, dirsave::String,
"combinatoric_ratelaws=comb_ratelaws)"

frn = "function get_reaction_system(foo)\n"
frn *= "\tModelingToolkit.@variables t\n"
frn *= "\tD = Differential(t)\n"
frn *= "\tt = Catalyst.default_t()\n"
frn *= "\tD = Catalyst.default_time_deriv()\n"
frn *= sps * "\n"
frn *= vs * "\n"
frn *= "\tsps_arg = " * sps_arg * "\n"
Expand Down

0 comments on commit 85edc4d

Please sign in to comment.