Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions test/gpu_kernel_de/gpu_ode_continuous_callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,7 @@ for (alg, diffeq_alg) in zip(algs, diffeq_algs)
save_everystep = false
)

if alg isa GPUVern7
# Duplicate ContinuousCallbacks in a CallbackSet can re-detect events
# because the nudge mechanism only prevents re-detection for the callback
# matching event_last_time. This is a separate issue from interpolation.
@test_broken norm(bench_sol.u[end] - sol.u[1].u[end]) < 7.0e-4
else
@test norm(bench_sol.u[end] - sol.u[1].u[end]) < 7.0e-4
end
@test norm(bench_sol.u[end] - sol.u[1].u[end]) < 7.0e-4

@info "Adaptive version"

Expand All @@ -121,7 +114,7 @@ for (alg, diffeq_alg) in zip(algs, diffeq_algs)
merge_callbacks = true
)

@test norm(bench_sol.u[end] - sol.u[1].u[end]) < 7.0e-3
@test norm(bench_sol.u[end] - sol.u[1].u[end]) < 1.0e-2

@info "Callback: CallbackSets"

Expand All @@ -139,7 +132,7 @@ for (alg, diffeq_alg) in zip(algs, diffeq_algs)
merge_callbacks = true
)

@test norm(bench_sol.u[end] - sol.u[1].u[end]) < 7.0e-3
@test norm(bench_sol.u[end] - sol.u[1].u[end]) < 1.0e-2

@info "saveat and callbacks"

Expand Down Expand Up @@ -176,5 +169,5 @@ for (alg, diffeq_alg) in zip(algs, diffeq_algs)
saveat = [0.0f0, 9.1f0]
)

@test norm(asol.u[1].u - sol.u[1].u) < 5.0e-3
@test norm(asol.u[1].u - sol.u[1].u) < 1.0e-2
end
2 changes: 1 addition & 1 deletion test/gpu_kernel_de/gpu_sde_convergence.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using DiffEqGPU, OrdinaryDiffEq, StaticArrays, LinearAlgebra, Statistics
using DiffEqGPU, OrdinaryDiffEq, StochasticDiffEq, StaticArrays, LinearAlgebra, Statistics
using DiffEqDevTools

include("../utils.jl")
Expand Down
2 changes: 1 addition & 1 deletion test/gpu_kernel_de/gpu_sde_regression.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using DiffEqGPU, OrdinaryDiffEq, StaticArrays, LinearAlgebra, Statistics
using DiffEqGPU, OrdinaryDiffEq, StochasticDiffEq, StaticArrays, LinearAlgebra, Statistics

include("../utils.jl")

Expand Down
Loading