@@ -542,21 +542,21 @@ end
542
542
543
543
# ## Conservation Laws ###
544
544
545
- # Implements the `conservationquantity ` parameter metadata.
545
+ # Implements the `conserved ` parameter metadata.
546
546
struct ConservedParameter end
547
- Symbolics. option_to_metadata_type (:: Val{:conserved} ) = ConservationQuantity
547
+ Symbolics. option_to_metadata_type (:: Val{:conserved} ) = ConservedParameter
548
548
549
549
"""
550
- isconservationquantity (p)
550
+ isconserved (p)
551
551
552
- Checks if the input parameter (`p`) is a conserved quantity (i.e. have the `conservationquantity `)
552
+ Checks if the input parameter (`p`) is a conserved quantity (i.e. have the `conserved `)
553
553
metadata.
554
554
"""
555
- isconservationquantity (x:: Num , args... ) = isconservationquantity (Symbolics. unwrap (x), args... )
556
- function isconservationquantity (x, default = false )
555
+ isconserved (x:: Num , args... ) = isconserved (Symbolics. unwrap (x), args... )
556
+ function isconserved (x, default = false )
557
557
p = Symbolics. getparent (x, nothing )
558
558
p === nothing || (x = p)
559
- Symbolics. getmetadata (x, ConservationQuantity , default)
559
+ Symbolics. getmetadata (x, ConservedParameter , default)
560
560
end
561
561
562
562
"""
@@ -653,7 +653,7 @@ function cache_conservationlaw_eqs!(rn::ReactionSystem, N::AbstractMatrix, col_o
653
653
depidxs = col_order[(r + 1 ): end ]
654
654
depspecs = sts[depidxs]
655
655
constants = MT. unwrap .(MT. scalarize (only (
656
- @parameters $ (CONSERVED_CONSTANT_SYMBOL)[1 : nullity] [conservationquantity = true ])))
656
+ @parameters $ (CONSERVED_CONSTANT_SYMBOL)[1 : nullity] [conserved = true ])))
657
657
658
658
conservedeqs = Equation[]
659
659
constantdefs = Equation[]
0 commit comments