*/
mutable std::vector<double> volume_elements;
- /**
- * A Q1 Finite element, to compute weights.
- */
- const FE_Q<dim> fe_q;
-
/**
* A pointer to the Manifold in use.
*
* @}
*/
-protected:
-
/**
* An FE_Q object, used to compute weights for Manifold quadratures.
*/
- const FE_Q<dim,spacedim> fe_q;
+ static const FE_Q<dim,spacedim> fe_q;
+
+protected:
/**
* Transforms the point @p p on the real cell to the corresponding point on
DEAL_II_NAMESPACE_OPEN
+
+template<int dim, int spacedim>
+const FE_Q<dim,spacedim>
+MappingManifold<dim,spacedim>::fe_q = FE_Q<dim,spacedim>(1);
+
+
+
template<int dim, int spacedim>
-MappingManifold<dim,spacedim>::InternalData::InternalData () :
- fe_q(1)
+MappingManifold<dim,spacedim>::InternalData::InternalData ()
{}
template<int dim, int spacedim>
-MappingManifold<dim,spacedim>::MappingManifold () :
- fe_q(1)
- // support_point_weights_on_quad (compute_support_point_weights_on_quad<dim>(this->polynomial_degree)),
- // support_point_weights_on_hex (compute_support_point_weights_on_hex<dim>(this->polynomial_degree)),
+MappingManifold<dim,spacedim>::MappingManifold ()
{
}
template<int dim, int spacedim>
-MappingManifold<dim,spacedim>::MappingManifold (const MappingManifold<dim,spacedim> &mapping) :
- fe_q(1)
+MappingManifold<dim,spacedim>::MappingManifold (const MappingManifold<dim,spacedim> &mapping)
{}
// Get the weights to compute the np point in real space
for (unsigned int j=0; j<GeometryInfo<dim>::vertices_per_cell; ++j)
- weights[j] = data.fe_q.shape_value(j, np);
+ weights[j] = MappingManifold<dim,spacedim>::fe_q.shape_value(j, np);
Point<spacedim> NP=data.manifold->
get_new_point(Quadrature<spacedim>(data.vertices, weights));