From 019076478491c59f55f2d86214ac9a48fe019993 Mon Sep 17 00:00:00 2001 From: FHoltorf <32248677+FHoltorf@users.noreply.github.com> Date: Tue, 26 Sep 2023 17:58:49 -0400 Subject: [PATCH] choose Float64 as default type for trust region adaptation parameters for now --- src/trustRegion.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trustRegion.jl b/src/trustRegion.jl index 11a5830fd..014c1fcc5 100644 --- a/src/trustRegion.jl +++ b/src/trustRegion.jl @@ -242,7 +242,7 @@ function SciMLBase.__init(prob::NonlinearProblem{uType, iip}, alg::TrustRegion, radius_update_scheme = alg.radius_update_scheme # set default type for all trust region parameters - trustType = eltype(u) #typeof(alg.initial_trust_radius) + trustType = Float64 #typeof(alg.initial_trust_radius) max_trust_radius = convert(trustType, alg.max_trust_radius) if iszero(max_trust_radius) max_trust_radius = convert(trustType, max(norm(fu1), maximum(u) - minimum(u)))