Comment 23 for bug 882560

Revision history for this message
Martin Sandve Alnæs (martinal) wrote : Re: [Bug 882560] Re: tr1::cyl_bessel_* functions are not found at linking stage of jit

See the tiny commit in lp:~martinal/dolfin/work which enables the Bessel jit tests.

Martin

Den 17. nov. 2011 kl. 19:47 skrev Anders Logg <email address hidden>:

> On Thu, Nov 17, 2011 at 06:35:52PM -0000, Johan Hake wrote:
>> On Thursday November 17 2011 10:05:40 Anders Logg wrote:
>>> Are there any unit tests for JIT compilation of Bessel forms? If not,
>>> could you add some?
>>
>> Who is "you"?
>
> Anyone of you, I don't care which. ;-)
>
> --
> Anders
>
> --
> You received this bug notification because you are a member of DOLFIN
> Core Team, which is subscribed to DOLFIN.
> https://bugs.launchpad.net/bugs/882560
>
> Title:
> tr1::cyl_bessel_* functions are not found at linking stage of jit
>
> Status in DOLFIN:
> In Progress
>
> Bug description:
> When a jit compiled module using bessel functions is imported into
> python, it fails with an undefined symbol error. Probably because the
> boost math tr1 library is not linked in.
>
> ImportError:/home/martinal/.instant/cache/d003d0ea29ed9346265963000f1a90648953f6a6/_d003d0ea29ed9346265963000f1a90648953f6a6.so:
> undefined symbol: boost_cyl_bessel_j;
>
>
> Code to reproduce:
>
> from dolfin import *
> mesh = Interval(10, 0.1, 2.0)
> V = FunctionSpace(mesh, "CG", 1)
> x = interval.x
> f = bessel_J(0, x)
> g = project(f, V)
> plot(g, mesh=mesh)
> interactive()
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dolfin/+bug/882560/+subscriptions