diff --git a/lib/OrdinaryDiffEqCore/src/integrators/controllers.jl b/lib/OrdinaryDiffEqCore/src/integrators/controllers.jl index 1f47f61ebc..9a0bb53267 100644 --- a/lib/OrdinaryDiffEqCore/src/integrators/controllers.jl +++ b/lib/OrdinaryDiffEqCore/src/integrators/controllers.jl @@ -141,8 +141,8 @@ end if iszero(EEst) q = inv(qmax) else - q11 = FastPower.fastpower(EEst, float(beta1)) - q = q11 / FastPower.fastpower(qold, float(beta2)) + q11 = FastPower.fastpower(EEst, convert(typeof(EEst),beta1)) + q = q11 / FastPower.fastpower(qold, convert(typeof(EEst),beta2)) integrator.q11 = q11 @fastmath q = max(inv(qmax), min(inv(qmin), q / gamma)) end diff --git a/lib/OrdinaryDiffEqFIRK/test/ode_firk_tests.jl b/lib/OrdinaryDiffEqFIRK/test/ode_firk_tests.jl index fc2bbbd7e6..b90c9da113 100644 --- a/lib/OrdinaryDiffEqFIRK/test/ode_firk_tests.jl +++ b/lib/OrdinaryDiffEqFIRK/test/ode_firk_tests.jl @@ -1,7 +1,7 @@ using OrdinaryDiffEqFIRK, DiffEqDevTools, Test, LinearAlgebra import ODEProblemLibrary: prob_ode_linear, prob_ode_2Dlinear, van -testTol = 0.3 +testTol = 0.35 for prob in [prob_ode_linear, prob_ode_2Dlinear] sim21 = test_convergence(1 .// 2 .^ (6:-1:3), prob, RadauIIA5())