From 7357a93888bcc6d06def26d5b05151efeff8c205 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 17 Dec 2024 21:59:23 -0700 Subject: [PATCH] More places of avoiding infinities. --- source/numerics/smoothness_estimator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/numerics/smoothness_estimator.cc b/source/numerics/smoothness_estimator.cc index e3bd24d6a4..b3bb5b2845 100644 --- a/source/numerics/smoothness_estimator.cc +++ b/source/numerics/smoothness_estimator.cc @@ -236,7 +236,7 @@ namespace SmoothnessEstimator // choose the smallest decay of coefficients in each direction, // i.e. the maximum decay slope k_v as in exp(-k_v) - double k_v = std::numeric_limits::infinity(); + double k_v = std::numeric_limits::max(); for (unsigned int d = 0; d < dim; ++d) { x.resize(0); @@ -521,7 +521,7 @@ namespace SmoothnessEstimator // choose the smallest decay of coefficients in each direction, // i.e. the maximum decay slope k_v as in exp(-k_v) - double k_v = std::numeric_limits::infinity(); + double k_v = std::numeric_limits::max(); for (unsigned int d = 0; d < dim; ++d) { x.resize(0); -- 2.39.5