Skip to content

Commit 7d0d950

Browse files
committed
error of non-reaction equatiosn are included.
1 parent 7cdbea6 commit 7d0d950

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/CatalystHomotopyContinuationExtension/homotopy_continuation_extension.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ end
4444

4545
# For a given reaction system, parameter values, and initial conditions, find the polynomial that HC solves to find steady states.
4646
function steady_state_polynomial(rs_in::ReactionSystem, ps, u0)
47+
any(!(eq isa Reaction) for eq in rs_in.eqs) && error("This feature is currently not supported for reaction systems containing (non-reaction) equations.")
4748
rs = ModelingToolkit.@set rs_in.rxs = [Catalyst.expand_registered_functions(rx) for rx in rs_in.rxs]
4849
ns = convert(NonlinearSystem, rs; remove_conserved = true)
4950
pre_varmap = [symmap_to_varmap(rs,u0)..., symmap_to_varmap(rs,ps)...]

0 commit comments

Comments
 (0)