Skip to content

Commit

Permalink
Merge pull request #17941 from bangerth/infinity-3
Browse files Browse the repository at this point in the history
More places of avoiding infinities.
  • Loading branch information
drwells authored Dec 18, 2024
2 parents 931d98b + 7357a93 commit 41e691e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/numerics/smoothness_estimator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>::infinity();
double k_v = std::numeric_limits<double>::max();
for (unsigned int d = 0; d < dim; ++d)
{
x.resize(0);
Expand Down Expand Up @@ -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<double>::infinity();
double k_v = std::numeric_limits<double>::max();
for (unsigned int d = 0; d < dim; ++d)
{
x.resize(0);
Expand Down

0 comments on commit 41e691e

Please sign in to comment.