#include <deal.II/grid/tria_iterator.h>
#include <deal.II/dofs/dof_accessor.h>
#include <deal.II/fe/mapping.h>
-#include <deal.II/fe/fe_q.h>
#include <cmath>
* @}
*/
- /**
- * An FE_Q object, used to compute weights for Manifold quadratures.
- */
- static const FE_Q<dim,spacedim> fe_q;
-
protected:
/**
{
for (unsigned int i=0; i<GeometryInfo<dim>::vertices_per_cell; ++i)
{
- cell_manifold_quadrature_weights[q][i] = fe_q.shape_value(i, quad.point(q));
+ cell_manifold_quadrature_weights[q][i] = GeometryInfo<dim>::d_linear_shape_function(quad.point(q), i);
}
}
}
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 ()
{}
-
template<int dim, int spacedim>
std::size_t
MappingManifold<dim,spacedim>::InternalData::memory_consumption () const
for (unsigned int v=0; v<GeometryInfo<dim>::vertices_per_cell; ++v)
{
vertices.push_back(cell->vertex(v));
- weights.push_back(fe_q.shape_value(v,p));
+ weights.push_back(GeometryInfo<dim>::d_linear_shape_function(p,v));
}
return cell->get_manifold().get_new_point(Quadrature<spacedim>(vertices, weights));
}
// 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] = MappingManifold<dim,spacedim>::fe_q.shape_value(j, np);
+ weights[j] = GeometryInfo<dim>::d_linear_shape_function(np, j);
Point<spacedim> NP=data.manifold->
get_new_point(Quadrature<spacedim>(data.vertices, weights));