From: Wolfgang Bangerth Date: Wed, 18 Dec 2024 04:59:23 +0000 (-0700) Subject: More places of avoiding infinities. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17941%2Fhead;p=dealii.git More places of avoiding infinities. --- 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);