Skip to content

Commit 2b3ec9c

Browse files
authored
horrible nasty hack
1 parent 4c0109f commit 2b3ec9c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/utility_tests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
using StochasticDiffEq, LinearAlgebra, SparseArrays, Random, LinearSolve, Test
22
using StochasticDiffEq.OrdinaryDiffEq: WOperator, calc_W!, calc_W
33
using StochasticDiffEq.SciMLOperators: MatrixOperator
4+
using OrdinaryDiffEq
45

6+
#horid nasty hack to deal with temporary calc_W refactor
7+
# if there is a method that takes a W_transform argument, define the version that doesn't to set W_transform to true
8+
if hasmethod(calc_W, (Any, Any, Any, Any, Any))
9+
OrdinaryDiffEq.calc_W(integ, nlsolver, dgamma, repeat_step::Bool) = OrdinaryDiffEq.calc_W(integ, nlsolver, dgamma, repeat_step, true)
10+
OrdinaryDiffEq.calc_W!(integ, nlsolver, cache, dgamma, repeat_step::Bool) = OrdinaryDiffEq.calc_W(integ, nlsolver, dgamma, cacherepeat_step, true)
11+
end
512
@testset "Derivative Utilities" begin
613
@testset "calc_W!" begin
714
A = [-1.0 0.0; 0.0 -0.5]; σ = [0.9 0.0; 0.0 0.8]

0 commit comments

Comments
 (0)