]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Workaround for icc8 compiler: explicit reference to invalid_dof_index variable within...
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 16 Jun 2006 14:20:15 +0000 (14:20 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 16 Jun 2006 14:20:15 +0000 (14:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@13266 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_handler.cc

index 4ffd32a7f64867590b0ae9657cc34a70679ec686..a8e4a47907955ef6fe66c7df02cf01127f867d9e 100644 (file)
@@ -38,6 +38,17 @@ template <int dim>
 const unsigned int DoFHandler<dim>::default_fe_index;
 
 
+// reference the invalid_dof_index variable explicitely to work around
+// a bug in the icc8 compiler
+namespace internal
+{
+  const unsigned int * dummy ()
+  {
+    return &::DoFHandler<deal_II_dimension>::invalid_dof_index;
+  }
+}
+
+
 
 template <int dim>
 DoFHandler<dim>::DoFHandler (const Triangulation<dim> &tria) :

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.