Skip to content

Commit 37ea1d9

Browse files
committed
iv is now a parmaeter
1 parent e9fa7ba commit 37ea1d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dsl.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,10 @@ function read_ivs_option(options)
600600
if haskey(options, :ivs)
601601
ivs = Tuple(extract_syms(options, :ivs))
602602
ivexpr = copy(options[:ivs])
603-
ivexpr.args[1] = Symbol("@", "variables")
603+
ivexpr.args[1] = Symbol("@", "parameters")
604604
else
605605
ivs = (DEFAULT_IV_SYM,)
606-
ivexpr = :(@variables $(DEFAULT_IV_SYM))
606+
ivexpr = :($(DEFAULT_IV_SYM) = default_t())
607607
end
608608

609609
# Extracts the independet variables symbols, and returns the output.
@@ -919,7 +919,7 @@ function make_reaction(ex::Expr)
919919
sexprs = get_usexpr(species, Dict{Symbol, Expr}())
920920
pexprs = get_pexpr(parameters, Dict{Symbol, Expr}())
921921
rxexpr = get_rxexpr(reaction)
922-
iv = :(@variables $(DEFAULT_IV_SYM))
922+
iv = :($(DEFAULT_IV_SYM) = default_t())
923923

924924
# Returns a repharsed expression which generates the `Reaction`.
925925
quote

0 commit comments

Comments
 (0)