Skip to content

Commit

Permalink
fix CI issues (#299)
Browse files Browse the repository at this point in the history
* ignore InteractiveUtils in stale_deps tests

* debug CI

* debugging

* more debugging

* update tests of banded matrices

* update dissipation operator tests

* remove debugging statements
  • Loading branch information
ranocha authored Nov 11, 2024
1 parent 6bcea0a commit a1d0728
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/aqua.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ 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
stale_deps = (; ignore = [:PrecompileTools]),
stale_deps = (; ignore = [:PrecompileTools, :InteractiveUtils]),
)
4 changes: 2 additions & 2 deletions test/banded_matrices_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ for T in (Float32, Float64), acc_order in (2,4,6,8), diss_order in (2,4,6,8), D_
mul!(dest2, D_full, u)
@test all(i->isapprox(dest1[i], dest2[i], atol=5000*eps(T)), eachindex(u))
mul!(dest2, D_sparse, u)
@test all(i->isapprox(dest1[i], dest2[i], atol=5000*eps(T)), eachindex(u))
@test dest1 dest2
mul!(dest2, D_banded, u)
@test all(i->isapprox(dest1[i], dest2[i], atol=5000*eps(T)), eachindex(u))
@test dest1 dest2


Di_serial = try
Expand Down
6 changes: 3 additions & 3 deletions test/dissipation_operators_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ for T in (Float32, Float64), order in (2,4,6,8)

mul!(dest1, Di_serial, u, one(T), zero(T))
mul!(dest2, Di_serial, u, one(T))
@test all(i->dest1[i] dest2[i], eachindex(u))
@test isapprox(dest1, dest2, rtol=100*sqrt(eps(T)))
mul!(dest1, Di_safe, u, one(T), zero(T))
mul!(dest2, Di_safe, u, one(T))
@test all(i->dest1[i] dest2[i], eachindex(u))
mul!(dest1, Di_threads, u, one(T), zero(T))
mul!(dest2, Di_threads, u, one(T))
@test all(i->dest1[i] dest2[i], eachindex(u))
@test isapprox(dest1, dest2, rtol=100*sqrt(eps(T)))
dest3 = Di_serial*u
@test all(i->dest1[i] dest3[i], eachindex(u))
@test isapprox(dest1, dest3, rtol=100*sqrt(eps(T)))
dest3 = Di_safe*u
@test all(i->isapprox(dest1[i], dest3[i], atol=800000*eps(T)), eachindex(u))
dest3 = Di_full*u
Expand Down

0 comments on commit a1d0728

Please sign in to comment.