From 0a58949ace239b66df2943e7fcef62580b69e260 Mon Sep 17 00:00:00 2001 From: Ralf Hartmann Date: Fri, 8 Apr 2005 16:31:51 +0000 Subject: [PATCH] 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 --- deal.II/deal.II/source/grid/geometry_info.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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] -- 2.39.5