Skip to content

Commit b9e6aaa

Browse files
committed
up
1 parent 0226cc6 commit b9e6aaa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/steady_state_stability.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,15 @@ function steady_state_stability(u::Vector, rs::ReactionSystem, ps; tol = 10*sqrt
6464
J = zeros(length(u), length(u))
6565
ss_jac = remake(ss_jac; u0 = u, p = ps)
6666
ss_jac.f.jac(J, ss_jac.u0, ss_jac.p, Inf)
67-
max_eig = maximum(real(ev) for ev in (eigvals(J)))
67+
println()
68+
println()
69+
println("Got here")
70+
println(J)
71+
println(typeof(J))
72+
println(eigvals(J))
73+
println(typeof(eigvals(J)))
74+
max_eig = maximum(real(ev) for ev in eigvals(J))
75+
println("Didn't get here")
6876
if abs(max_eig) < tol
6977
error("The system Jacobian's maximum eigenvalue at the steady state is within the tolerance range (abs($max_eig) < $tol). Hence, stability could not be reliably determined. If you still wish to compute the stability, reduce the `tol` argument.")
7078
end

0 commit comments

Comments
 (0)