]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid a warning. In this context, also realize that we take references to temporary...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 27 Feb 2014 20:52:58 +0000 (20:52 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 27 Feb 2014 20:52:58 +0000 (20:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@32575 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_nedelec.cc

index 61111bb018c054ebe747a5e81580c374a42ce52c..29c15ced9494fb2366256934d88cc680e904a8da 100644 (file)
@@ -246,11 +246,10 @@ FE_Nedelec<2>::initialize_support_points (const unsigned int degree)
   // Initialize quadratures to obtain
   // quadrature points later on.
   const QGauss<dim - 1> reference_edge_quadrature (degree + 1);
-  const unsigned int &
-  n_edge_points = reference_edge_quadrature.size ();
+  const unsigned int n_edge_points = reference_edge_quadrature.size ();
   const unsigned int n_boundary_points
     = GeometryInfo<dim>::lines_per_cell * n_edge_points;
-  const Quadrature<dim> &edge_quadrature
+  const Quadrature<dim> edge_quadrature
     = QProjector<dim>::project_to_all_faces (reference_edge_quadrature);
 
   this->generalized_face_support_points.resize (n_edge_points);
@@ -300,10 +299,6 @@ FE_Nedelec<2>::initialize_support_points (const unsigned int degree)
     {
       // In this case we only need support points
       // on the faces of a cell.
-      const Quadrature<dim> &edge_quadrature
-        = QProjector<dim>::project_to_all_faces
-          (reference_edge_quadrature);
-
       this->generalized_support_points.resize (n_boundary_points);
 
       for (unsigned int line = 0;

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.