From: wolf Date: Mon, 29 Sep 2003 16:37:32 +0000 (+0000) Subject: Give field proper size. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=107217d0fe2a3f5c07fd17a9fa38f07518f76f81;p=dealii-svn.git Give field proper size. git-svn-id: https://svn.dealii.org/trunk@8054 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/fe/fe_values.h b/deal.II/deal.II/include/fe/fe_values.h index 55a104a4b4..f3382979e3 100644 --- a/deal.II/deal.II/include/fe/fe_values.h +++ b/deal.II/deal.II/include/fe/fe_values.h @@ -1043,7 +1043,8 @@ class FEFaceValuesBase : public FEValuesBase * 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 * values instead of computing * them. */ - static const bool orientation_table[]; + static const bool orientation_table[GeometryInfo::faces_per_cell]; }; diff --git a/deal.II/deal.II/source/fe/fe_values.cc b/deal.II/deal.II/source/fe/fe_values.cc index 5ef093005a..b55460387c 100644 --- a/deal.II/deal.II/source/fe/fe_values.cc +++ b/deal.II/deal.II/source/fe/fe_values.cc @@ -624,7 +624,7 @@ FEValues::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 };