From 341a6f8964a13920559485e8b4c05df2c2f0198f Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 3 Aug 2004 02:22:17 +0000 Subject: [PATCH] Work around a trivial problem with the hp compiler. git-svn-id: https://svn.dealii.org/trunk@9540 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/fe_q_2d.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/deal.II/deal.II/source/fe/fe_q_2d.cc b/deal.II/deal.II/source/fe/fe_q_2d.cc index 83cdec5544..3ee7e0bdf9 100644 --- a/deal.II/deal.II/source/fe/fe_q_2d.cc +++ b/deal.II/deal.II/source/fe/fe_q_2d.cc @@ -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 -// 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 <> -- 2.39.5