From 88660b51083ce01d3b12a8fb863319ce7b25f53b Mon Sep 17 00:00:00 2001 From: Mateusz Baran Date: Tue, 19 Oct 2021 10:28:18 +0200 Subject: [PATCH] minor tweak around error estimation --- src/error_estimation.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/error_estimation.jl b/src/error_estimation.jl index 14440fb..087ae2c 100644 --- a/src/error_estimation.jl +++ b/src/error_estimation.jl @@ -31,14 +31,14 @@ end """ reltol_norm(M::AbstractManifold, u) -Estimate the fraction `d_{min}/eps(number_eltype(u))` where `d_{min}`` is the distance +Estimate the fraction `d_{min}/eps(number_eltype(u))` where `d_{min}` is the distance between `u`, a point on `M`, and the nearest distinct point on `M` representable in the representation of `u`. """ -function reltol_norm(M::AbstractManifold, u) +function reltol_norm(::AbstractManifold, u) return norm(u) end function reltol_norm(M::ProductManifold, u::ProductRepr) mapped_norms = map((Mi, ui) -> reltol_norm(Mi, ui), M.manifolds, u.parts) - return maximum(mapped_norms) + return mean(mapped_norms) end