From: Matthias Maier Date: Tue, 15 Oct 2013 23:49:07 +0000 (+0000) Subject: Bugfix: Guard correctly X-Git-Tag: v8.1.0~570^2~53 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae88c1580f61f57cc1b293fe58f4c8ef21e902cf;p=dealii.git Bugfix: Guard correctly git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31246 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/function_lib.cc b/deal.II/source/base/function_lib.cc index a1b5efd521..92d7097165 100644 --- a/deal.II/source/base/function_lib.cc +++ b/deal.II/source/base/function_lib.cc @@ -2218,13 +2218,13 @@ namespace Functions const double co = (r==0.) ? 0. : (p(0)-center(0))/r; const double si = (r==0.) ? 0. : (p(1)-center(1))/r; +#ifdef HAVE_JN const double dJn = (order==0) ? (-jn(1, r*wave_number)) : (.5*(jn(order-1, wave_number*r) -jn(order+1, wave_number*r))); Tensor<1,dim> result; result[0] = wave_number * co * dJn; result[1] = wave_number * si * dJn; -#ifdef HAVE_JN return result; #else Assert(false, ExcMessage("Bessel function jn was not found by configure"));