Skip to content

Commit

Permalink
Merge pull request #574 from SciML/os/import-calc_W
Browse files Browse the repository at this point in the history
fix out of place calc_W test
  • Loading branch information
oscardssmith authored Jul 26, 2024
2 parents 8129a71 + 06ecdf2 commit 0c03d8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utility_tests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using StochasticDiffEq, LinearAlgebra, SparseArrays, Random, LinearSolve, Test
using StochasticDiffEq.OrdinaryDiffEq: WOperator, calc_W!
using StochasticDiffEq.OrdinaryDiffEq: WOperator, calc_W!, calc_W
using StochasticDiffEq.SciMLOperators: MatrixOperator

@testset "Derivative Utilities" begin
Expand All @@ -17,7 +17,7 @@ using StochasticDiffEq.SciMLOperators: MatrixOperator
jac=(u,p,t) -> A)
prob = SDEProblem(fun, u0, tspan)
integrator = init(prob, ImplicitEM(theta=1); adaptive=false, dt=dt)
W = calc_W(integrator, integrator.cache.nlsolver, integrator.cache, dtgamma, false)
W = calc_W(integrator, integrator.cache.nlsolver, dtgamma, false)
@test convert(AbstractMatrix, W) concrete_W
@test W \ u0 concrete_W \ u0

Expand Down

0 comments on commit 0c03d8b

Please sign in to comment.