]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make sure that also the icc compiler defines (and not only declares) the vertices_per...
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 8 Apr 2005 16:31:51 +0000 (16:31 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 8 Apr 2005 16:31:51 +0000 (16:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@10436 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/geometry_info.cc

index 0a6574c907a3d4276bcef20a9bb862ea180f7254..fcda47fc9f6a015890924ed873cf6f35d85ec93c 100644 (file)
@@ -27,6 +27,24 @@ template <int dim> const unsigned int GeometryInfo<dim>::lines_per_cell;
 template <int dim> const unsigned int GeometryInfo<dim>::quads_per_cell;
 template <int dim> const unsigned int GeometryInfo<dim>::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 <int dim>
+  void define_variables () 
+  { 
+    foo(&GeometryInfo<dim>::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]

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.