Skip to content

Commit

Permalink
Attempt fix for Linux/Windows NaN checking
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Feb 23, 2022
1 parent b155c1c commit e792776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EvaluateEquation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ macro return_on_check(val, T, n)
end

macro return_on_nonfinite_array(array, T, n)
:(if !isfinite(sum(ys -> ys * $(esc(T))(0), $(esc(array)))) # Other solution. *0 because of potential for overflow.
:(if !isfinite(sum($(esc(array)))) # Other solution. *0 because of potential for overflow.
return (Array{$(esc(T)), 1}(undef, $(esc(n))), false)
end)
end
Expand Down

2 comments on commit e792776

@MilesCranmer
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/55268

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.14 -m "<description of version>" e79277696acd69dc4b28d7476beb3c0764df0a9f
git push origin v0.7.14

Please sign in to comment.