From 52513e5e6f7294ffa832bde2a5460d85bee38651 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 19 Jan 2007 20:25:34 +0000 Subject: [PATCH] Set the array size to nonzero only in 3d, since we don't ever need this field otherwise. git-svn-id: https://svn.dealii.org/trunk@14348 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/fe.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/fe/fe.cc b/deal.II/deal.II/source/fe/fe.cc index b42264f063..6c6d792ae0 100644 --- a/deal.II/deal.II/source/fe/fe.cc +++ b/deal.II/deal.II/source/fe/fe.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -114,7 +114,9 @@ FiniteElement::FiniteElement ( : FiniteElementData (fe_data), cached_primitivity(false), - adjust_quad_dof_index_for_face_orientation_table (this->dofs_per_quad, 0), + adjust_quad_dof_index_for_face_orientation_table (dim == 3 ? + this->dofs_per_quad : 0, + 0), system_to_base_table(this->dofs_per_cell), face_system_to_base_table(this->dofs_per_face), component_to_base_table (this->components, -- 2.39.5