Skip to content

Commit

Permalink
Migrate from SnoopPrecompile to PrecompileTools
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Apr 24, 2023
1 parent a7ad8fa commit 476a491
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ version = "1.0.0"

[deps]
Polyester = "f517fe37-dbe3-4b94-8317-1923a5111588"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"

[compat]
Polyester = "0.6, 0.7"
SnoopPrecompile = "1"
PrecompileTools = "1"
julia = "1.6"

[extras]
Expand Down
6 changes: 3 additions & 3 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using SnoopPrecompile
using PrecompileTools

@precompile_setup begin
@setup_workload begin
m_sphere = 1.0
n_water = 4 / 3
d = 1000
Expand All @@ -10,7 +10,7 @@ using SnoopPrecompile
m = 1.5 - im * 1.0
θ = 0:30:180
μ = cosd.(θ)
@precompile_all_calls begin
@compile_workload begin
qext, qsca, qback, g = ez_mie(m_sphere, d, λ0, n_water)

qext, qsca, qback, g = mie(m, x)
Expand Down

0 comments on commit 476a491

Please sign in to comment.