From 3a59a96934532e5ea9b1b0dc0064a37582a68097 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Thu, 16 May 2013 07:10:22 +0000 Subject: [PATCH] Fix undefined references with Intel compiler. git-svn-id: https://svn.dealii.org/trunk@29517 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/base/function.cc | 2 -- deal.II/source/base/tensor_product_polynomials.cc | 11 +++++++++++ deal.II/source/fe/fe_q_base.cc | 9 +++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/deal.II/source/base/function.cc b/deal.II/source/base/function.cc index 02b1e29fca..17187a03e4 100644 --- a/deal.II/source/base/function.cc +++ b/deal.II/source/base/function.cc @@ -602,8 +602,6 @@ VectorFunctionFromTensorFunction::VectorFunctionFromTensorFunction (const T // Verify that the Tensor<1,dim> will fit in the given length selected_components // and not hang over the end of the vector. - Assert (0 <= selected_component, - ExcIndexRange (selected_component,0,0)); Assert (selected_component + dim - 1 < this->n_components, ExcIndexRange (selected_component, 0, this->n_components)); } diff --git a/deal.II/source/base/tensor_product_polynomials.cc b/deal.II/source/base/tensor_product_polynomials.cc index 23f92aa94d..3dc4cfbb33 100644 --- a/deal.II/source/base/tensor_product_polynomials.cc +++ b/deal.II/source/base/tensor_product_polynomials.cc @@ -118,6 +118,17 @@ TensorProductPolynomials::set_numbering( +template <> +double +TensorProductPolynomials<0,Polynomials::Polynomial > +::compute_value(const unsigned int, + const Point<0> &) const +{ + Assert (false, ExcNotImplemented()); +} + + + template double TensorProductPolynomials::compute_value (const unsigned int i, diff --git a/deal.II/source/fe/fe_q_base.cc b/deal.II/source/fe/fe_q_base.cc index 60c7fd251c..b99c8b5d8a 100644 --- a/deal.II/source/fe/fe_q_base.cc +++ b/deal.II/source/fe/fe_q_base.cc @@ -47,6 +47,15 @@ namespace FE_Q_Helper return face_renumber; } + // dummy specialization for dim == 1 to avoid linker errors + template <> + inline + std::vector + face_lexicographic_to_hierarchic_numbering<1> (const unsigned int) + { + return std::vector(); + } + // in initialize_embedding() and initialize_restriction(), want to undo -- 2.39.5