diff --git a/test/wrappers/rootfind_tests.jl b/test/wrappers/rootfind_tests.jl index 94720f382..5bacdadbc 100644 --- a/test/wrappers/rootfind_tests.jl +++ b/test/wrappers/rootfind_tests.jl @@ -24,6 +24,7 @@ end PETScSNES(; autodiff = missing) ] alg isa CMINPACK && Sys.isapple() && continue + alg isa PETScSNES && Sys.iswindows() && continue sol = solve(prob_iip, alg) @test SciMLBase.successful_retcode(sol.retcode) @test maximum(abs, sol.resid) < 1e-6 @@ -43,6 +44,7 @@ end PETScSNES(; autodiff = missing) ] alg isa CMINPACK && Sys.isapple() && continue + alg isa PETScSNES && Sys.iswindows() && continue sol = solve(prob_oop, alg) @test SciMLBase.successful_retcode(sol.retcode) @test maximum(abs, sol.resid) < 1e-6 @@ -67,6 +69,7 @@ end PETScSNES(; autodiff = missing) ] alg isa CMINPACK && Sys.isapple() && continue + alg isa PETScSNES && Sys.iswindows() && continue local sol sol = solve(prob_iip, alg) @test SciMLBase.successful_retcode(sol.retcode) @@ -86,6 +89,7 @@ end PETScSNES(; autodiff = missing) ] alg isa CMINPACK && Sys.isapple() && continue + alg isa PETScSNES && Sys.iswindows() && continue local sol sol = solve(prob_oop, alg) @test SciMLBase.successful_retcode(sol.retcode) @@ -108,7 +112,7 @@ end ] alg isa CMINPACK && Sys.isapple() && continue - + alg isa PETScSNES && Sys.iswindows() && continue sol = solve(prob_tol, alg, abstol = tol) @test abs(sol.u[1] - sqrt(2)) < tol end @@ -160,10 +164,12 @@ end sol = solve(ProbN, SIAMFANLEquationsJL(; method = :pseudotransient); abstol = 1e-8) @test maximum(abs, sol.resid) < 1e-6 sol = solve(ProbN, PETScSNES(); abstol = 1e-8) - @test maximum(abs, sol.resid) < 1e-6 + if !Sys.iswindows() + @test maximum(abs, sol.resid) < 1e-6 + end end -@testitem "PETSc SNES Floating Points" setup=[WrapperRootfindImports] tags=[:wrappers] begin +@testitem "PETSc SNES Floating Points" setup=[WrapperRootfindImports] tags=[:wrappers] skip=:(Sys.iswindows()) begin f(u, p) = u .* u .- 2 u0 = [1.0, 1.0]