Skip to content

Commit

Permalink
Fix type instability with return nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
stecrotti committed Nov 4, 2024
1 parent 632937c commit b08708d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/glauber/equilibrium.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function iterate_fixedpoint(f, init; maxiter=10^3, atol=0, rtol=1e-16, damp=0.0)
x = (1-damp)*xnew + damp*x
end
@warn "Fixed point iterations did not converge. err=$err"
return x

Check warning on line 22 in src/Models/glauber/equilibrium.jl

View check run for this annotation

Codecov / codecov/patch

src/Models/glauber/equilibrium.jl#L22

Added line #L22 was not covered by tests
end

function equilibrium_observables(g::RandomRegular, J::Real; β::Real=1.0, h::Real=0.0,
Expand Down

0 comments on commit b08708d

Please sign in to comment.