|
73 | 73 | diffeq = (alg = SRA(), abstol = 1.0e-3, reltol = 1.0e-3, verbose = false) |
74 | 74 | ) |
75 | 75 | @test lorenz_SRA.integ.alg isa SRA |
76 | | - @test lorenz_SRA.integ.opts.verbose == false |
| 76 | + # SciML moved from Bool verbose to a `DEVerbosity` struct of per-toggle verbosities. |
| 77 | + @test nameof(typeof(lorenz_SRA.integ.opts.verbose.linear_verbosity)) == :None |
77 | 78 |
|
78 | 79 | # also test SDEproblem creation |
79 | 80 | prob = lorenz_SRA.integ.sol.prob |
80 | 81 |
|
81 | 82 | ds = CoupledSDEs(prob, (alg = SRA(), abstol = 0.0, reltol = 1.0e-3, verbose = false)) |
82 | 83 |
|
83 | 84 | @test ds.integ.alg isa SRA |
84 | | - @test ds.integ.opts.verbose == false |
| 85 | + @test nameof(typeof(ds.integ.opts.verbose.linear_verbosity)) == :None |
85 | 86 |
|
86 | 87 | @test_throws ArgumentError CoupledSDEs(prob; diffeq = (alg = SRA(),)) |
87 | 88 |
|
|
104 | 105 | corr = CoupledSDEs(f, zeros(2); covariance = [1 0.3; 0.3 1]) |
105 | 106 | corr_alt = CoupledSDEs(f, zeros(2); g = g, noise_prototype = zeros(2, 2)) |
106 | 107 | @test corr.noise_type == corr_alt.noise_type |
107 | | - @test all(corr.integ.g(zeros(2), (), 0.0) .== corr_alt.integ.g(zeros(2), (), 0.0)) |
| 108 | + @test all( |
| 109 | + DynamicalSystemsBase.referrenced_sciml_prob(corr).g(zeros(2), (), 0.0) .== |
| 110 | + DynamicalSystemsBase.referrenced_sciml_prob(corr_alt).g(zeros(2), (), 0.0) |
| 111 | + ) |
108 | 112 | end |
109 | 113 |
|
110 | 114 | @testset "ArgumentError" begin |
|
0 commit comments