Skip to content

Commit 87b2e18

Browse files
committed
saved progress on ivs
1 parent 87d5036 commit 87b2e18

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/chemistry_functionality.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,15 @@ function make_compound(expr)
8282
components_designation_expr = Expr(:escape, :($species_name = ModelingToolkit.setmetadata($species_name, Catalyst.CompoundComponents, $components)))
8383
coefficients_designation_expr = Expr(:escape, :($species_name = ModelingToolkit.setmetadata($species_name, Catalyst.CompoundCoefficients, $coefficients)))
8484

85-
# Currently, non-t independent variables are not supported for compounds. If there are any like these, we throw an error:
86-
non_t_iv_error_check_expr = Expr(:escape, :(issetequal(unique(reduce(vcat, arguments.(ModelingToolkit.unwrap.($components)))), [t]) || error("Currently, compounds depending on components that are not \"t\" are not supported.")))
85+
println(quote
86+
$species_declaration_expr
87+
$compound_designation_expr
88+
$components_designation_expr
89+
$coefficients_designation_expr
90+
end)
8791

8892
# Returns the rephrased expression.
8993
return quote
90-
$non_t_iv_error_check_expr
9194
$species_declaration_expr
9295
$multiple_ivs_error_check_expr
9396
$iv_designation_expr

0 commit comments

Comments
 (0)