Skip to content

Commit

Permalink
switch to PrecompileTools (#181)
Browse files Browse the repository at this point in the history
* switch to PrecompileTools

* bump version

* ignore PrecompileTools in Aqua tests
  • Loading branch information
ranocha authored Apr 25, 2023
1 parent f3c5686 commit 4ddff29
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SummationByPartsOperators"
uuid = "9f78cca6-572e-554e-b819-917d2f1cf240"
author = ["Hendrik Ranocha"]
version = "0.5.33"
version = "0.5.34"

[deps]
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
Expand All @@ -12,12 +12,12 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"
MuladdMacro = "46d2c3a1-f734-5fdb-9937-b9b9aeba4221"
PolynomialBases = "c74db56a-226d-5e98-8bb0-a6049094aeea"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
SimpleUnPack = "ce78b400-467f-4804-87d8-8f486da07d0a"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
StaticArrayInterface = "0d7ed370-da01-4f52-bd93-41d350b8b718"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Expand All @@ -32,12 +32,12 @@ FFTW = "1"
LoopVectorization = "0.12.22"
MuladdMacro = "0.2"
PolynomialBases = "0.4.15"
PrecompileTools = "1.0.1"
RecursiveArrayTools = "2.11"
Reexport = "0.2, 1.0"
Requires = "0.5.2, 1"
SciMLBase = "1.51"
SimpleUnPack = "1"
SnoopPrecompile = "1"
StaticArrayInterface = "1"
StaticArrays = "1.0"
StructArrays = "0.6"
Expand Down
13 changes: 7 additions & 6 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
using SnoopPrecompile: @precompile_all_calls
using PrecompileTools: @compile_workload

@precompile_all_calls begin
let D = periodic_derivative_operator(derivative_order=1, accuracy_order=2,
xmin=0.0, xmax=2.0, N=10)
@compile_workload begin
let D = periodic_derivative_operator(derivative_order = 1, accuracy_order = 2,
xmin = 0.0, xmax = 2.0, N = 10)
u = zeros(eltype(D), size(D, 2))
D * u
end

let D = derivative_operator(MattssonNordström2004(), derivative_order=1, accuracy_order=2,
xmin=0.0, xmax=2.0, N=10)
let D = derivative_operator(MattssonNordström2004(),
derivative_order = 1, accuracy_order = 2,
xmin = 0.0, xmax = 2.0, N = 10)
u = zeros(eltype(D), size(D, 2))
D * u
end
Expand Down
5 changes: 3 additions & 2 deletions test/aqua.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ using Aqua
using SummationByPartsOperators

Aqua.test_all(SummationByPartsOperators;
ambiguities=false, # a lot of false positives from dependencies
unbound_args=false # TODO: a strange problem I do not understand right now
ambiguities = false, # a lot of false positives from dependencies
unbound_args = false, # TODO: a strange problem I do not understand right now
stale_deps = (; ignore = [:PrecompileTools]),
)

2 comments on commit 4ddff29

@ranocha
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
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/82231

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.5.34 -m "<description of version>" 4ddff297f37371943a4b2939ec031577fa633a48
git push origin v0.5.34

Please sign in to comment.