]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use numeric_limits::infinity
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 27 Jul 2017 21:50:33 +0000 (23:50 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 27 Jul 2017 21:50:33 +0000 (23:50 +0200)
source/base/quadrature.cc

index fc7117ab3ddd07588df6870d5477f33d305f08d7..4a107dc22aa84e5567d88cd646917226bfe9af40 100644 (file)
@@ -104,7 +104,7 @@ template <int dim>
 Quadrature<dim>::Quadrature (const std::vector<Point<dim> > &points)
   :
   quadrature_points(points),
-  weights(points.size(), std::atof("Inf")),
+  weights(points.size(), std::numeric_limits<double>::infinity()),
   is_tensor_product_flag (dim==1)
 {
   Assert(weights.size() == points.size(),

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.