Skip to content

Commit

Permalink
choose Float64 as default type for trust region adaptation parameters…
Browse files Browse the repository at this point in the history
… for now
  • Loading branch information
FHoltorf committed Sep 26, 2023
1 parent 177def2 commit 0190764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trustRegion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 0190764

Please sign in to comment.