]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around a trivial problem with the hp compiler.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Aug 2004 02:22:17 +0000 (02:22 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Aug 2004 02:22:17 +0000 (02:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@9540 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 83cdec554406c244e0e859426faff4a17bf79038..3ee7e0bdf978c1af7aa76c5b9ffa80e42b0a8de1 100644 (file)
@@ -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
 
 #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 <>

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.