Skip to content

Commit 2804db1

Browse files
committed
updates
1 parent 783cd9a commit 2804db1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/CatalystHomotopyContinuationExtension/homotopy_continuation_extension.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ gives
3434
Notes:
3535
```
3636
"""
37-
function Catalyst.hc_steady_states(rs::ReactionSystem, ps; filter_negative=true, neg_thres=-1e-20, u0=nothing, kwargs...)
37+
function Catalyst.hc_steady_states(rs::ReactionSystem, ps; filter_negative=true, neg_thres=-1e-20, u0=[], kwargs...)
3838
ss_poly = steady_state_polynomial(rs, ps, u0)
3939
sols = HC.real_solutions(HC.solve(ss_poly; kwargs...))
4040
reorder_sols!(sols, ss_poly, rs)
@@ -57,8 +57,8 @@ end
5757

5858
# If u0s are not given while conservation laws are present, throws an error.
5959
function conservationlaw_errorcheck(rs, pre_varmap)
60-
vars_with_vals = Set(p[1] for p in pre_varpmap)
61-
issubset(species(rs), vars_with_vals) && return
60+
vars_with_vals = Set(p[1] for p in pre_varmap)
61+
isempty(intersect(species(rs), vars_with_vals)) || return
6262
isempty(conservedequations(rs)) ||
6363
error("The system has conservation laws but initial conditions were not provided for all species.")
6464
end

0 commit comments

Comments
 (0)