const DoFHandler<dim,spacedim> &dof,
const Quadrature<dim> &q,
SparseMatrix<number> &matrix,
- const Function<spacedim,number> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const coefficient,
const ConstraintMatrix &constraints)
{
Assert (matrix.m() == dof.n_dofs(),
void create_mass_matrix (const DoFHandler<dim,spacedim> &dof,
const Quadrature<dim> &q,
SparseMatrix<number> &matrix,
- const Function<spacedim,number> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const coefficient,
const ConstraintMatrix &constraints)
{
create_mass_matrix(StaticMappingQ1<dim,spacedim>::mapping, dof,
SparseMatrix<number> &matrix,
const Function<spacedim,number> &rhs,
Vector<number> &rhs_vector,
- const Function<spacedim,number> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const coefficient,
const ConstraintMatrix &constraints)
{
Assert (matrix.m() == dof.n_dofs(),
SparseMatrix<number> &matrix,
const Function<spacedim,number> &rhs,
Vector<number> &rhs_vector,
- const Function<spacedim,number> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const coefficient,
const ConstraintMatrix &constraints)
{
create_mass_matrix(StaticMappingQ1<dim,spacedim>::mapping,
const hp::DoFHandler<dim,spacedim> &dof,
const hp::QCollection<dim> &q,
SparseMatrix<number> &matrix,
- const Function<spacedim,number> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const coefficient,
const ConstraintMatrix &constraints)
{
Assert (matrix.m() == dof.n_dofs(),
void create_mass_matrix (const hp::DoFHandler<dim,spacedim> &dof,
const hp::QCollection<dim> &q,
SparseMatrix<number> &matrix,
- const Function<spacedim,number> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const coefficient,
const ConstraintMatrix &constraints)
{
create_mass_matrix(hp::StaticMappingQ1<dim,spacedim>::mapping_collection,
SparseMatrix<number> &matrix,
const Function<spacedim,number> &rhs,
Vector<number> &rhs_vector,
- const Function<spacedim,number> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const coefficient,
const ConstraintMatrix &constraints)
{
Assert (matrix.m() == dof.n_dofs(),
SparseMatrix<number> &matrix,
const Function<spacedim,number> &rhs,
Vector<number> &rhs_vector,
- const Function<spacedim,number> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const coefficient,
const ConstraintMatrix &constraints)
{
create_mass_matrix(hp::StaticMappingQ1<dim,spacedim>::mapping_collection, dof, q,
const std::map<types::boundary_id, const Function<spacedim,number>*> &boundary_functions,
Vector<number> &rhs_vector,
std::vector<types::global_dof_index> &dof_to_boundary_mapping,
- const Function<spacedim,number> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const coefficient,
std::vector<unsigned int> component_mapping)
{
// what would that be in 1d? the
const std::map<types::boundary_id, const Function<spacedim,number>*> &rhs,
Vector<number> &rhs_vector,
std::vector<types::global_dof_index> &dof_to_boundary_mapping,
- const Function<spacedim,number> *const a,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a,
std::vector<unsigned int> component_mapping)
{
create_boundary_mass_matrix(StaticMappingQ1<dim,spacedim>::mapping, dof, q,
const std::map<types::boundary_id, const Function<spacedim,number>*> &boundary_functions,
Vector<number> &rhs_vector,
std::vector<types::global_dof_index> &dof_to_boundary_mapping,
- const Function<spacedim,number> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const coefficient,
std::vector<unsigned int> component_mapping)
{
// what would that be in 1d? the
const std::map<types::boundary_id, const Function<spacedim,number>*> &rhs,
Vector<number> &rhs_vector,
std::vector<types::global_dof_index> &dof_to_boundary_mapping,
- const Function<spacedim,number> *const a,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a,
std::vector<unsigned int> component_mapping)
{
create_boundary_mass_matrix(hp::StaticMappingQ1<dim,spacedim>::mapping_collection, dof, q,
const DoFHandler<dim,spacedim> &dof,
const Quadrature<dim> &q,
SparseMatrix<double> &matrix,
- const Function<spacedim> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value> *const coefficient,
const ConstraintMatrix &constraints)
{
Assert (matrix.m() == dof.n_dofs(),
void create_laplace_matrix (const DoFHandler<dim,spacedim> &dof,
const Quadrature<dim> &q,
SparseMatrix<double> &matrix,
- const Function<spacedim> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value> *const coefficient,
const ConstraintMatrix &constraints)
{
create_laplace_matrix(StaticMappingQ1<dim,spacedim>::mapping,
SparseMatrix<double> &matrix,
const Function<spacedim> &rhs,
Vector<double> &rhs_vector,
- const Function<spacedim> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value> *const coefficient,
const ConstraintMatrix &constraints)
{
Assert (matrix.m() == dof.n_dofs(),
SparseMatrix<double> &matrix,
const Function<spacedim> &rhs,
Vector<double> &rhs_vector,
- const Function<spacedim> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value> *const coefficient,
const ConstraintMatrix &constraints)
{
create_laplace_matrix(StaticMappingQ1<dim,spacedim>::mapping, dof, q,
const hp::DoFHandler<dim,spacedim> &dof,
const hp::QCollection<dim> &q,
SparseMatrix<double> &matrix,
- const Function<spacedim> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value> *const coefficient,
const ConstraintMatrix &constraints)
{
Assert (matrix.m() == dof.n_dofs(),
void create_laplace_matrix (const hp::DoFHandler<dim,spacedim> &dof,
const hp::QCollection<dim> &q,
SparseMatrix<double> &matrix,
- const Function<spacedim> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value> *const coefficient,
const ConstraintMatrix &constraints)
{
create_laplace_matrix(hp::StaticMappingQ1<dim,spacedim>::mapping_collection, dof, q,
SparseMatrix<double> &matrix,
const Function<spacedim> &rhs,
Vector<double> &rhs_vector,
- const Function<spacedim> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value> *const coefficient,
const ConstraintMatrix &constraints)
{
Assert (matrix.m() == dof.n_dofs(),
SparseMatrix<double> &matrix,
const Function<spacedim> &rhs,
Vector<double> &rhs_vector,
- const Function<spacedim> *const coefficient,
+ const Function<std::integral_constant<int, spacedim>::value> *const coefficient,
const ConstraintMatrix &constraints)
{
create_laplace_matrix(hp::StaticMappingQ1<dim,spacedim>::mapping_collection, dof, q,
const DoFHandler<dim,spacedim> &dof,
const Quadrature<dim> &q,
SparseMatrix<number> &matrix,
- const Function<spacedim,number> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
void create_mass_matrix (const DoFHandler<dim,spacedim> &dof,
const Quadrature<dim> &q,
SparseMatrix<number> &matrix,
- const Function<spacedim,number> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
SparseMatrix<number> &matrix,
const Function<spacedim,number> &rhs,
Vector<number> &rhs_vector,
- const Function<spacedim,number> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
SparseMatrix<number> &matrix,
const Function<spacedim,number> &rhs,
Vector<number> &rhs_vector,
- const Function<spacedim,number> *const a = 0,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
const hp::DoFHandler<dim,spacedim> &dof,
const hp::QCollection<dim> &q,
SparseMatrix<number> &matrix,
- const Function<spacedim,number> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
void create_mass_matrix (const hp::DoFHandler<dim,spacedim> &dof,
const hp::QCollection<dim> &q,
SparseMatrix<number> &matrix,
- const Function<spacedim,number> *const a = 0,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
SparseMatrix<number> &matrix,
const Function<spacedim,number> &rhs,
Vector<number> &rhs_vector,
- const Function<spacedim,number> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
SparseMatrix<number> &matrix,
const Function<spacedim,number> &rhs,
Vector<number> &rhs_vector,
- const Function<spacedim,number> *const a = 0,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
const std::map<types::boundary_id, const Function<spacedim,number>*> &boundary_functions,
Vector<number> &rhs_vector,
std::vector<types::global_dof_index> &dof_to_boundary_mapping,
- const Function<spacedim,number> *const weight = 0,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const weight = nullptr,
std::vector<unsigned int> component_mapping = std::vector<unsigned int>());
const std::map<types::boundary_id, const Function<spacedim,number>*> &boundary_functions,
Vector<number> &rhs_vector,
std::vector<types::global_dof_index> &dof_to_boundary_mapping,
- const Function<spacedim,number> *const a = 0,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
std::vector<unsigned int> component_mapping = std::vector<unsigned int>());
/**
const std::map<types::boundary_id, const Function<spacedim,number>*> &boundary_functions,
Vector<number> &rhs_vector,
std::vector<types::global_dof_index> &dof_to_boundary_mapping,
- const Function<spacedim,number> *const a = 0,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
std::vector<unsigned int> component_mapping = std::vector<unsigned int>());
/**
const std::map<types::boundary_id, const Function<spacedim,number>*> &boundary_functions,
Vector<number> &rhs_vector,
std::vector<types::global_dof_index> &dof_to_boundary_mapping,
- const Function<spacedim,number> *const a = 0,
+ const Function<std::integral_constant<int, spacedim>::value, typename identity<number>::type> *const a = nullptr,
std::vector<unsigned int> component_mapping = std::vector<unsigned int>());
/**
const DoFHandler<dim,spacedim> &dof,
const Quadrature<dim> &q,
SparseMatrix<double> &matrix,
- const Function<spacedim> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
void create_laplace_matrix (const DoFHandler<dim,spacedim> &dof,
const Quadrature<dim> &q,
SparseMatrix<double> &matrix,
- const Function<spacedim> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
SparseMatrix<double> &matrix,
const Function<spacedim> &rhs,
Vector<double> &rhs_vector,
- const Function<spacedim> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
SparseMatrix<double> &matrix,
const Function<spacedim> &rhs,
Vector<double> &rhs_vector,
- const Function<spacedim> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
const hp::DoFHandler<dim,spacedim> &dof,
const hp::QCollection<dim> &q,
SparseMatrix<double> &matrix,
- const Function<spacedim> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
void create_laplace_matrix (const hp::DoFHandler<dim,spacedim> &dof,
const hp::QCollection<dim> &q,
SparseMatrix<double> &matrix,
- const Function<spacedim> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
SparseMatrix<double> &matrix,
const Function<spacedim> &rhs,
Vector<double> &rhs_vector,
- const Function<spacedim> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
SparseMatrix<double> &matrix,
const Function<spacedim> &rhs,
Vector<double> &rhs_vector,
- const Function<spacedim> *const a = nullptr,
+ const Function<std::integral_constant<int, spacedim>::value> *const a = nullptr,
const ConstraintMatrix &constraints = ConstraintMatrix());
/**
rhs_function, rhs_ref);
constraints.condense(matrix_ref, rhs_ref);
- const Function<dim> *const dummy = nullptr;
MatrixTools::create_laplace_matrix (mapping, dof, quadrature, matrix,
- rhs_function, rhs, dummy, constraints);
+ rhs_function, rhs, nullptr, constraints);
// compute reference: need to cancel constrained entries as these will in
// general get different values
rhs_function, rhs_ref);
constraints.condense(matrix_ref, rhs_ref);
- const Function<dim> *const dummy = nullptr;
MatrixTools::create_laplace_matrix (mapping, dof, quadrature, matrix,
- rhs_function, rhs, dummy, constraints);
+ rhs_function, rhs, nullptr, constraints);
// compute reference: need to cancel constrained entries as these will in
// general get different values
quadrature, matrix_ref);
constraints.condense(matrix_ref);
- const Function<dim> *const dummy = nullptr;
MatrixTools::create_laplace_matrix (mapping, dof, quadrature, matrix,
- dummy, constraints);
+ nullptr, constraints);
// compute reference: need to cancel constrained entries as these will in
// general get different values
rhs_function, rhs_ref);
constraints.condense(matrix_ref, rhs_ref);
- const Function<dim> *const dummy = nullptr;
MatrixTools::create_mass_matrix (mapping, dof, quadrature, matrix,
- rhs_function, rhs, dummy, constraints);
+ rhs_function, rhs, nullptr, constraints);
// compute reference: need to cancel constrained entries as these will in
// general get different values
rhs_function, rhs_ref);
constraints.condense(matrix_ref, rhs_ref);
- const Function<dim> *const dummy = nullptr;
MatrixTools::create_mass_matrix (mapping, dof, quadrature, matrix,
- rhs_function, rhs, dummy, constraints);
+ rhs_function, rhs, nullptr, constraints);
// compute reference: need to cancel constrained entries as these will in
// general get different values
quadrature, matrix_ref);
constraints.condense(matrix_ref);
- const Function<dim> *const dummy = nullptr;
MatrixTools::create_mass_matrix (mapping, dof, quadrature, matrix,
- dummy, constraints);
+ nullptr, constraints);
// compute reference: need to cancel constrained entries as these will in
// general get different values