Skip to content

Commit 18d7944

Browse files
committed
@compounds in the macro
1 parent 9dae177 commit 18d7944

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/chemistry_functionality.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ 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+
println(
86+
return quote
87+
$species_declaration_expr
88+
$compound_designation_expr
89+
$components_designation_expr
90+
$coefficients_designation_expr
91+
end)
92+
8593
# Returns the rephrased expression.
8694
return quote
8795
$species_declaration_expr

0 commit comments

Comments
 (0)