]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Set the array size to nonzero only in 3d, since we don't ever need this field otherwise.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Jan 2007 20:25:34 +0000 (20:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Jan 2007 20:25:34 +0000 (20:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@14348 0785d39b-7218-0410-832d-ea1e28bc413d

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

index b42264f063f64f792d7bc57395948077c1c6ee56..6c6d792ae0ed83729c44bc36b34774d28be38be8 100644 (file)
@@ -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<dim>::FiniteElement (
                :
                FiniteElementData<dim> (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,

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.