]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Don't use deal_II_dimension inside functions.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 29 Sep 2003 19:09:17 +0000 (19:09 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 29 Sep 2003 19:09:17 +0000 (19:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@8060 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/mapping_q1.cc

index 78823cd27a20eabeed8709fefc2b9fd957d8ea3d..c342fd7f8acb3f28a4e28492482aa3eeacf1ff0d 100644 (file)
@@ -26,7 +26,6 @@
 
 
 
-
 template <int dim>
 const unsigned int MappingQ1<dim>::n_shape_functions;
 
@@ -328,6 +327,19 @@ MappingQ1<dim>::get_data (const UpdateFlags update_flags,
 }
 
 
+#if deal_II_dimension == 1
+
+template <>
+void
+MappingQ1<1>::compute_face_data (const UpdateFlags update_flags,
+                                 const Quadrature<1>& q,
+                                 const unsigned int n_original_q_points,
+                                 InternalData& data) const
+{
+  compute_data (update_flags, q, n_original_q_points, data);
+}
+
+#else
 
 template <int dim>
 void
@@ -338,7 +350,6 @@ MappingQ1<dim>::compute_face_data (const UpdateFlags update_flags,
 {
   compute_data (update_flags, q, n_original_q_points, data);
 
-#if (deal_II_dimension>1)
   if (data.update_flags & update_boundary_forms)
     {
       data.aux.reinit(dim-1, n_original_q_points);      
@@ -385,9 +396,10 @@ MappingQ1<dim>::compute_face_data (const UpdateFlags update_flags,
            }
        }
     }
-#endif
 }
 
+#endif
+
   
 
 template <int dim>

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.