]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix: Guard correctly
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 15 Oct 2013 23:49:07 +0000 (23:49 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 15 Oct 2013 23:49:07 +0000 (23:49 +0000)
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

index a1b5efd521931e04a1e1c1f124e8d8fb5df89add..92d7097165df969a12f36f406d65135cdca36681 100644 (file)
@@ -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"));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.