//----------------------------------------------------------------
//    $Id$
//    Version: $Name$
//
//    Copyright (C) 2001, 2002, 2003, 2004 by the deal.II authors
//
//    This file is subject to QPL and may not be  distributed
//    without copyright and license information. Please refer
//    to the file deal.II/doc/license.html for the  text  and
//    further information on this license.
//
//----------------------------------------------------------------


// only compile this file if in 2d
#if deal_II_dimension == 2


#include <fe/fe_q.h>

// constraint matrices in 2d are now implemented by computing them on the fly
// for all polynomial degrees. the array is thus empty. unfortunately, some
// compilers dislike empty initializers for arrays of unknown size
// (particularly the hp compiler), so we simply initialize a single element
// with a null pointer
template <>
const double * const 
FE_Q<2>::Matrices::constraint_matrices[] = { 0 };


template <>
const unsigned int 
FE_Q<2>::Matrices::n_constraint_matrices = 0;



#else // #if deal_II_dimension
// On gcc2.95 on Alpha OSF1, the native assembler does not like empty
// files, so provide some dummy code
namespace { void dummy () {} }
#endif // #if deal_II_dimension == 2

//----------------------------------------------------------------
//    $Id$
//    Version: $Name$
//
//    Copyright (C) 2001, 2002, 2003 by the deal.II authors
//
//    This file is subject to QPL and may not be  distributed
//    without copyright and license information. Please refer
//    to the file deal.II/doc/license.html for the  text  and
//    further information on this license.
//
//----------------------------------------------------------------


// only compile this file if in 2d
#if deal_II_dimension == 2


#include <fe/fe_q.h>

// constraint matrices in 2d are now implemented by computing them on
// the fly for all polynomial degrees

template <>
const double * const 
FE_Q<2>::Matrices::constraint_matrices[] = {};


template <>
const unsigned int 
FE_Q<2>::Matrices::n_constraint_matrices = 0;



#else // #if deal_II_dimension
// On gcc2.95 on Alpha OSF1, the native assembler does not like empty
// files, so provide some dummy code
namespace { void dummy () {} }
#endif // #if deal_II_dimension == 2

--- 
+++ 
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2001, 2002, 2003 by the deal.II authors
+//    Copyright (C) 2001, 2002, 2003, 2004 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -18,12 +18,14 @@
 
 #include <fe/fe_q.h>
 
-// constraint matrices in 2d are now implemented by computing them on
-// the fly for all polynomial degrees
-
+// constraint matrices in 2d are now implemented by computing them on the fly
+// for all polynomial degrees. the array is thus empty. unfortunately, some
+// compilers dislike empty initializers for arrays of unknown size
+// (particularly the hp compiler), so we simply initialize a single element
+// with a null pointer
 template <>
 const double * const 
-FE_Q<2>::Matrices::constraint_matrices[] = {};
+FE_Q<2>::Matrices::constraint_matrices[] = { 0 };
 
 
 template <>
Work around a trivial problem with the hp compiler.


git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@9540 0785d39b-7218-0410-832d-ea1e28bc413d
