const Function<spacedim> &exact,
const Function<spacedim> *weight)
{
- error_from_exact(
- StaticMappingQ1<dim, spacedim>::mapping, dh, solution, exact, weight);
+ error_from_exact(ReferenceCell::get_default_linear_mapping(
+ dh.get_triangulation()),
+ dh,
+ solution,
+ exact,
+ weight);
}
q_points_coarse[q](j) = q_points_fine[q](j);
Quadrature<dim> q_coarse(q_points_coarse, fine.get_JxW_values());
FEValues<dim, spacedim> coarse(
- StaticMappingQ1<dim, spacedim>::mapping,
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ coarse_cell->reference_cell_type()),
fe,
q_coarse,
update_values);
const types::material_id material_id,
const Strategy strategy)
{
- estimate(StaticMappingQ1<dim, spacedim>::mapping,
+ estimate(ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ dof_handler.get_triangulation()),
dof_handler,
quadrature,
neumann_bc,
const types::material_id material_id,
const Strategy strategy)
{
- estimate(StaticMappingQ1<dim, spacedim>::mapping,
+ estimate(ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ dof_handler.get_triangulation()),
dof_handler,
quadrature,
neumann_bc,
const types::material_id material_id,
const Strategy strategy)
{
- estimate(StaticMappingQ1<dim, spacedim>::mapping,
+ estimate(ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ dof_handler.get_triangulation()),
dof_handler,
quadrature,
neumann_bc,
const types::material_id material_id,
const Strategy strategy)
{
- estimate(StaticMappingQ1<dim, spacedim>::mapping,
+ estimate(ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ dof_handler.get_triangulation()),
dof_handler,
quadrature,
neumann_bc,
const Function<spacedim, number> *const coefficient,
const AffineConstraints<number> & constraints)
{
- create_mass_matrix(StaticMappingQ1<dim, spacedim>::mapping,
+ create_mass_matrix(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
q,
matrix,
const Function<spacedim, number> *const coefficient,
const AffineConstraints<number> & constraints)
{
- create_mass_matrix(StaticMappingQ1<dim, spacedim>::mapping,
+ create_mass_matrix(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
q,
matrix,
const Function<spacedim, number> *const a,
std::vector<unsigned int> component_mapping)
{
- create_boundary_mass_matrix(StaticMappingQ1<dim, spacedim>::mapping,
+ create_boundary_mass_matrix(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
q,
matrix,
const Function<spacedim> *const coefficient,
const AffineConstraints<double> &constraints)
{
- create_laplace_matrix(StaticMappingQ1<dim, spacedim>::mapping,
+ create_laplace_matrix(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
q,
matrix,
const Function<spacedim> *const coefficient,
const AffineConstraints<double> &constraints)
{
- create_laplace_matrix(StaticMappingQ1<dim, spacedim>::mapping,
+ create_laplace_matrix(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
q,
matrix,
std::map<types::global_dof_index, number> &boundary_values,
const ComponentMask & component_mask)
{
- interpolate_boundary_values(StaticMappingQ1<dim, spacedim>::mapping,
+ interpolate_boundary_values(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
boundary_component,
boundary_function,
std::map<types::global_dof_index, number> &boundary_values,
const ComponentMask & component_mask)
{
- interpolate_boundary_values(StaticMappingQ1<dim, spacedim>::mapping,
+ interpolate_boundary_values(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
function_map,
boundary_values,
AffineConstraints<number> & constraints,
const ComponentMask & component_mask)
{
- interpolate_boundary_values(StaticMappingQ1<dim, spacedim>::mapping,
+ interpolate_boundary_values(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
boundary_component,
boundary_function,
AffineConstraints<number> &constraints,
const ComponentMask & component_mask)
{
- interpolate_boundary_values(StaticMappingQ1<dim, spacedim>::mapping,
+ interpolate_boundary_values(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
function_map,
constraints,
std::map<types::global_dof_index, number> &boundary_values,
std::vector<unsigned int> component_mapping)
{
- project_boundary_values(StaticMappingQ1<dim, spacedim>::mapping,
+ project_boundary_values(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
boundary_functions,
q,
AffineConstraints<number> &constraints,
std::vector<unsigned int> component_mapping)
{
- project_boundary_values(StaticMappingQ1<dim, spacedim>::mapping,
+ project_boundary_values(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
boundary_functions,
q,
VectorType & vec,
const ComponentMask & component_mask)
{
- interpolate(StaticMappingQ1<dim, spacedim>::mapping,
+ interpolate(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
function,
vec,
const VectorType & v,
const unsigned int component)
{
- return compute_mean_value(
- StaticMappingQ1<dim, spacedim>::mapping, dof, quadrature, v, component);
+ return compute_mean_value(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
+ dof,
+ quadrature,
+ v,
+ component);
}
} // namespace VectorTools
&gradients)
{
if (dof.has_hp_capabilities() == false)
- point_gradient(StaticMappingQ1<dim, spacedim>::mapping,
+ point_gradient(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
fe_function,
point,
const Point<spacedim> & point)
{
if (dof.has_hp_capabilities() == false)
- return point_gradient(StaticMappingQ1<dim, spacedim>::mapping,
+ return point_gradient(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
fe_function,
point);
Vector<typename VectorType::value_type> &value)
{
if (dof.has_hp_capabilities() == false)
- point_value(StaticMappingQ1<dim, spacedim>::mapping,
+ point_value(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
fe_function,
point,
const Point<spacedim> & point)
{
if (dof.has_hp_capabilities() == false)
- return point_value(StaticMappingQ1<dim, spacedim>::mapping,
+ return point_value(ReferenceCell::get_default_linear_mapping(
+ dof.get_triangulation()),
dof,
fe_function,
point);
p,
rhs_vector);
else
- create_point_source_vector(StaticMappingQ1<dim, spacedim>::mapping,
+ create_point_source_vector(ReferenceCell::get_default_linear_mapping(
+ dof_handler.get_triangulation()),
dof_handler,
p,
rhs_vector);
orientation,
rhs_vector);
else
- create_point_source_vector(StaticMappingQ1<dim, spacedim>::mapping,
+ create_point_source_vector(ReferenceCell::get_default_linear_mapping(
+ dof_handler.get_triangulation()),
dof_handler,
p,
orientation,
ExcMessage("Please specify the mapping explicitly "
"when building with MSVC!"));
#else
- project(StaticMappingQ1<dim, spacedim>::mapping,
+ project(ReferenceCell::get_default_linear_mapping(dof.get_triangulation()),
dof,
constraints,
quadrature,
VectorType & rhs_vector,
const AffineConstraints<typename VectorType::value_type> & constraints)
{
- create_right_hand_side(StaticMappingQ1<dim, spacedim>::mapping,
+ create_right_hand_side(ReferenceCell::get_default_linear_mapping(
+ dof_handler.get_triangulation()),
dof_handler,
quadrature,
rhs_function,