static const unsigned int n_shape_functions = GeometryInfo<dim>::vertices_per_cell;
};
+
+/**
+ * In order to avoid creation of static MappingQ1 objects at several
+ * places in the library (in particular in backward compatibility
+ * functions), we define a static MappingQ1 objects once and for all
+ * places where it is needed.
+ */
+template <int dim>
+struct StaticMappingQ1
+{
+ static MappingQ1<dim> mapping;
+};
+
+
/*@}*/
/*----------------------------------------------------------------------*/
return new MappingQ1<dim>(*this);
}
+//---------------------------------------------------------------------------
+
+
+template <int dim> MappingQ1<dim> StaticMappingQ1<dim>::mapping;
+
+
+
//---------------------------------------------------------------------------
template class MappingQ1<deal_II_dimension>;
+template struct StaticMappingQ1<deal_II_dimension>;
+
+
+
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