]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize member variables to invalid values. 3435/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 17:45:24 +0000 (11:45 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 17:45:24 +0000 (11:45 -0600)
source/fe/mapping_cartesian.cc

index 5ffce2361ea7a3888495e8ad4dbef9964e560427..bbdb5439438932fa673065f54f9dcb0a5dc228d1 100644 (file)
@@ -17,6 +17,7 @@
 #include <deal.II/base/tensor.h>
 #include <deal.II/base/quadrature.h>
 #include <deal.II/base/qprojector.h>
+#include <deal.II/base/signaling_nan.h>
 #include <deal.II/base/memory_consumption.h>
 #include <deal.II/lac/full_matrix.h>
 #include <deal.II/grid/tria.h>
@@ -40,6 +41,8 @@ const unsigned int MappingCartesian<dim,spacedim>::invalid_face_number;
 template<int dim, int spacedim>
 MappingCartesian<dim, spacedim>::InternalData::InternalData (const Quadrature<dim> &q)
   :
+  cell_extents (numbers::signaling_nan<Tensor<1,dim> >()),
+  volume_element (numbers::signaling_nan<double>()),
   quadrature_points (q.get_points ())
 {}
 

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.