From da0e2e5f531da3c4a87ce7a44bd68919dbfa591d Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 15 Oct 2013 23:49:07 +0000 Subject: [PATCH] Bugfix: Guard correctly git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31246 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/base/function_lib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); -- 2.39.5