From d2961351a8980ecc5dd455217207af11e7314fde Mon Sep 17 00:00:00 2001 From: Oscar Smith Date: Mon, 20 May 2024 17:45:59 -0400 Subject: [PATCH] bugfix --- src/integrator_interface.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integrator_interface.jl b/src/integrator_interface.jl index c9361682b..c52ff0bf9 100644 --- a/src/integrator_interface.jl +++ b/src/integrator_interface.jl @@ -634,7 +634,7 @@ function check_error(integrator::DEIntegrator) return ReturnCode.Unstable end end - bigtol = max(max(opts.reltol), max(opts.abstol)) + bigtol = max(maximum(opts.reltol), maximum(opts.abstol)) if isdefined(integrator, :EEst) && integrator.EEst * bigtol < .1 if opts.unstable_check(integrator.dt, integrator.u, integrator.p, integrator.t)