From 78b488ce3d1f31d857f3ae1c1efb30402b126527 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 23 Jun 2016 20:23:38 -0500 Subject: [PATCH] Avoid some warnings in case we don't have GSL available. --- source/fe/fe_series.cc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source/fe/fe_series.cc b/source/fe/fe_series.cc index c647a7a2dc..0a186e38cc 100644 --- a/source/fe/fe_series.cc +++ b/source/fe/fe_series.cc @@ -205,6 +205,7 @@ namespace FESeries double Lh(const Point &x_q, const TableIndices &indices) { +#ifdef DEAL_II_WITH_GSL double res = 1.0; for (unsigned int d = 0; d < dim; d++) { @@ -212,14 +213,18 @@ namespace FESeries Assert ( (x_q[d] <= 1.0) && (x_q[d] >= 0.), ExcLegendre(d,x_q[d])); const int ind = indices[d]; -#ifdef DEAL_II_WITH_GSL res *= sqrt(2.0) * gsl_sf_legendre_Pl (ind, x); -#else - AssertThrow(false, ExcMessage("deal.II has to be configured with GSL" - "in order to use Legendre transformation.")); -#endif } return res; + +#else + + (void)x_q; + (void)indices; + AssertThrow(false, ExcMessage("deal.II has to be configured with GSL" + "in order to use Legendre transformation.")); + return 0; +#endif } /* -- 2.39.5