Skip to content

Commit e379c46

Browse files
add test
1 parent 6dfd699 commit e379c46

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/interface/precision_mixing.jl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using OrdinaryDiffEq
2+
function ODE(du, u, t, R, K)
3+
du .= u
4+
end
5+
params = BigFloat[1. 0.91758707304098; 1.48439909482661 1.]
6+
u0 = BigFloat[0.1, 0.1]
7+
tspan = (1.0, 31.0)
8+
R = BigFloat[0.443280390004304303, 1.172917082211452]
9+
K = BigFloat[13.470600276901400604, 12.52980757005]
10+
ODE_ = (du, u, params, t) -> ODE(du, u, t, R, K)
11+
odeProblem = ODEProblem(ODE_, u0, tspan, params)
12+
for alg in [AutoVern8(Rodas5(), nonstifftol = 11 / 10)
13+
FBDF()
14+
QNDF()
15+
Tsit5()
16+
Rodas5P()
17+
TRBDF2()
18+
KenCarp4()
19+
RadauIIA5()
20+
]
21+
Solution = solve(odeProblem, alg, saveat = 1, abstol = 1.e-12, reltol = 1.e-6)
22+
end

0 commit comments

Comments
 (0)