Skip to content

Commit

Permalink
Merge pull request #62 from timholy/teh/precompiletools
Browse files Browse the repository at this point in the history
Migrate from SnoopPrecompile to PrecompileTools
  • Loading branch information
ChrisRackauckas authored Apr 26, 2023
2 parents 5ca2d21 + 0ba9b91 commit 54c34bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/SimpleNonlinearSolve/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"

[weakdeps]
Expand All @@ -30,7 +30,7 @@ NNlib = "0.8"
Reexport = "0.2, 1"
Requires = "1"
SciMLBase = "1.73"
SnoopPrecompile = "1"
PrecompileTools = "1"
StaticArraysCore = "1.4"
julia = "1.6"

Expand Down
4 changes: 2 additions & 2 deletions lib/SimpleNonlinearSolve/src/SimpleNonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ include("ad.jl")
include("halley.jl")
include("alefeld.jl")

import SnoopPrecompile
import PrecompileTools

SnoopPrecompile.@precompile_all_calls begin for T in (Float32, Float64)
PrecompileTools.@compile_workload begin for T in (Float32, Float64)
prob_no_brack = NonlinearProblem{false}((u, p) -> u .* u .- p, T(0.1), T(2))
for alg in (SimpleNewtonRaphson, Halley, Broyden, Klement, SimpleTrustRegion,
SimpleDFSane)
Expand Down

0 comments on commit 54c34bf

Please sign in to comment.