From 107217d0fe2a3f5c07fd17a9fa38f07518f76f81 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 29 Sep 2003 16:37:32 +0000 Subject: [PATCH] Give field proper size. git-svn-id: https://svn.dealii.org/trunk@8054 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/fe_values.h | 5 +++-- deal.II/deal.II/source/fe/fe_values.cc | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) 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 }; -- 2.39.5