Skip to content

Commit

Permalink
Fix for diffusive stability check
Browse files Browse the repository at this point in the history
  • Loading branch information
pw0908 committed Oct 15, 2024
1 parent 78984df commit 136d7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/methods/stability.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Checks if all eigenvalues of `∂²A/∂n²` are positive.
"""
function VT_diffusive_stability(model,V,T,z = SA[1.0])
isone(length(model)) && return true
ρᵢ = x ./ V
ρᵢ = z ./ V
= Ψ_hessian(model,T,ρᵢ)
λ = eigmin(Hermitian(HΨ)) # calculating just minimum eigenvalue more efficient than calculating all & finding min
return λ > 0
Expand Down

0 comments on commit 136d7a7

Please sign in to comment.