]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplify code slightly.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 20 Nov 2010 00:08:58 +0000 (00:08 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 20 Nov 2010 00:08:58 +0000 (00:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@22828 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_poly_tensor.cc

index 0f58ad232d2d36640e276c976dec6e022fd59d68..fcd09b9e94d072eaf4a22b21048c6dffd5461b87 100644 (file)
@@ -577,13 +577,12 @@ FE_PolyTensor<POLY,dim,spacedim>::fill_fe_face_values (
                                   // to take (all data sets for all
                                   // faces are stored contiguously)
 
-  const typename QProjector<dim>::DataSetDescriptor dsd;
   const typename QProjector<dim>::DataSetDescriptor offset
-    = dsd.face (face,
-               cell->face_orientation(face),
-               cell->face_flip(face),
-               cell->face_rotation(face),
-               n_q_points);
+    = QProjector<dim>::DataSetDescriptor::face (face,
+                                               cell->face_orientation(face),
+                                               cell->face_flip(face),
+                                               cell->face_rotation(face),
+                                               n_q_points);
 
   const UpdateFlags flags(fe_data.update_once | fe_data.update_each);
 
@@ -780,18 +779,17 @@ FE_PolyTensor<POLY,dim,spacedim>::fill_fe_subface_values (
   InternalData &fe_data = static_cast<InternalData &> (fedata);
 
   const unsigned int n_q_points = quadrature.size();
+
                                   // offset determines which data set
                                   // to take (all data sets for all
-                                // sub-faces are stored contiguously)
-
-  const typename QProjector<dim>::DataSetDescriptor dsd;
+                                  // sub-faces are stored contiguously)
   const typename QProjector<dim>::DataSetDescriptor offset
-    = dsd.subface (face, subface,
-                  cell->face_orientation(face),
-                  cell->face_flip(face),
-                  cell->face_rotation(face),
-                  n_q_points,
-                  cell->subface_case(face));
+    = QProjector<dim>::DataSetDescriptor::subface (face, subface,
+                                                  cell->face_orientation(face),
+                                                  cell->face_flip(face),
+                                                  cell->face_rotation(face),
+                                                  n_q_points,
+                                                  cell->subface_case(face));
 
   const UpdateFlags flags(fe_data.update_once | fe_data.update_each);
 

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.