From: Ralf Hartmann Date: Fri, 8 Apr 2005 16:31:51 +0000 (+0000) Subject: Make sure that also the icc compiler defines (and not only declares) the vertices_per... X-Git-Tag: v8.0.0~14111 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a58949ace239b66df2943e7fcef62580b69e260;p=dealii.git Make sure that also the icc compiler defines (and not only declares) the vertices_per_cell variable. git-svn-id: https://svn.dealii.org/trunk@10436 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/geometry_info.cc b/deal.II/deal.II/source/grid/geometry_info.cc index 0a6574c907..fcda47fc9f 100644 --- a/deal.II/deal.II/source/grid/geometry_info.cc +++ b/deal.II/deal.II/source/grid/geometry_info.cc @@ -27,6 +27,24 @@ template const unsigned int GeometryInfo::lines_per_cell; template const unsigned int GeometryInfo::quads_per_cell; template const unsigned int GeometryInfo::hexes_per_cell; +// make sure that also the icc compiler defines (and not only declares) +// these variables +namespace internal +{ + void foo (const unsigned int *) {}; + + template + void define_variables () + { + foo(&GeometryInfo::vertices_per_cell); + } + + template void define_variables<2> (); + template void define_variables<3> (); +} + + + template <> const unsigned int GeometryInfo<1>::opposite_face[GeometryInfo<1>::faces_per_cell]