]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Give field proper size.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 29 Sep 2003 16:37:32 +0000 (16:37 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 29 Sep 2003 16:37:32 +0000 (16:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@8054 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_values.h
deal.II/deal.II/source/fe/fe_values.cc

index 55a104a4b424ea50428037a2b1f29efc2bbc998c..f3382979e3246f2c00fe659a727f8de7a659dc3b 100644 (file)
@@ -1043,7 +1043,8 @@ class FEFaceValuesBase : public FEValuesBase<dim>
                                      * Value for orientation function.
                                      */
     bool my_orientation;
-                                    /**
+
+                                    /**
                                      * Data table for orientation
                                      * values. Since the faces are
                                      * numbered in a creative
@@ -1051,7 +1052,7 @@ class FEFaceValuesBase : public FEValuesBase<dim>
                                      * values instead of computing
                                      * them.
                                      */
-    static const bool orientation_table[];
+    static const bool orientation_table[GeometryInfo<dim>::faces_per_cell];
 };
 
 
index 5ef093005a1b1d27a0287645a3669b3029aa46bc..b55460387ca3c4780b68c3f9999a91d7df4145ca 100644 (file)
@@ -624,7 +624,7 @@ FEValues<dim>::memory_consumption () const
 #if deal_II_dimension == 1
 template <>
 const bool
-FEFaceValuesBase<1>::orientation_table[] =
+FEFaceValuesBase<1>::orientation_table[GeometryInfo<1>::faces_per_cell] =
 {
       false, true
 };
@@ -634,7 +634,7 @@ FEFaceValuesBase<1>::orientation_table[] =
 #if deal_II_dimension == 2
 template <>
 const bool
-FEFaceValuesBase<2>::orientation_table[] =
+FEFaceValuesBase<2>::orientation_table[GeometryInfo<2>::faces_per_cell] =
 {
       true, true, false, false
 };
@@ -644,7 +644,7 @@ FEFaceValuesBase<2>::orientation_table[] =
 #if deal_II_dimension == 3
 template <>
 const bool
-FEFaceValuesBase<3>::orientation_table[] =
+FEFaceValuesBase<3>::orientation_table[GeometryInfo<3>::faces_per_cell] =
 {
       true, false, true, false, true, false
 };

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.