#include <base/config.h>
#include <base/subscriptor.h>
-#include <fe/mapping.h>
+#include <fe/mapping_q1.h>
#include <fe/fe.h>
#include <vector>
};
+/**
+ * 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 MappingCollection<dim> mapping_collection;
+ };
+
/* --------------- inline functions ------------------- */
.push_back (boost::shared_ptr<const Mapping<dim> >(new_mapping.clone()));
}
+//---------------------------------------------------------------------------
+
+
+ template <int dim> MappingCollection<dim>
+ StaticMappingQ1<dim>::mapping_collection(::StaticMappingQ1<dim>::mapping);
// explicit instantiations
template class MappingCollection<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