On 27 October 2011 17:06, Johan Hake <email address hidden> wrote:
> We have discussed this before and I remember someone(TM) did not want to
> make compiling of UFC modules dependent on DOLFIN. I think that is a
Good point :)
> good choice and that Kristian's fix is what we should go with. Isn't UFC
> modules already dependent on cmath?
The difference is that cmath is standard and always available, it
doesn't require linking to external libraries which is the issue here.
> On Oct 27, 2011, at 7:08, Kristian B. Ølgaard
> <email address hidden> wrote:
>
>> On 27 October 2011 15:50, Garth Wells <email address hidden> wrote:
>>> I've added the math library to DOLFIN, but it doesn't seem to help.
>>> Perhaps Instant is not taking the flags from DOLFIN?
>>
>> It looks like FFC.Jit calls instant through UFC passing only a few arguments.
>> Adding the line:
>>
>> libraries=["boost_math_tr1"])
>>
>> to the call to
>>
>> module = ufc_utils.build_ufc_module(
>>
>> in jit_form() seems to do the trick.
>>
>> The question is if we should ask users to set this manually through
>> the parameter system like 'cpp_optimize'?
If FFC can pass it directly to ufc (and thus instant) in jit _if_ it
is needed, I think that would be the most robust solution.
On 27 October 2011 17:06, Johan Hake <email address hidden> wrote:
> We have discussed this before and I remember someone(TM) did not want to
> make compiling of UFC modules dependent on DOLFIN. I think that is a
Good point :)
> good choice and that Kristian's fix is what we should go with. Isn't UFC
> modules already dependent on cmath?
The difference is that cmath is standard and always available, it
doesn't require linking to external libraries which is the issue here.
> On Oct 27, 2011, at 7:08, Kristian B. Ølgaard ["boost_ math_tr1" ]) build_ufc_ module(
> <email address hidden> wrote:
>
>> On 27 October 2011 15:50, Garth Wells <email address hidden> wrote:
>>> I've added the math library to DOLFIN, but it doesn't seem to help.
>>> Perhaps Instant is not taking the flags from DOLFIN?
>>
>> It looks like FFC.Jit calls instant through UFC passing only a few arguments.
>> Adding the line:
>>
>> libraries=
>>
>> to the call to
>>
>> module = ufc_utils.
>>
>> in jit_form() seems to do the trick.
>>
>> The question is if we should ask users to set this manually through
>> the parameter system like 'cpp_optimize'?
If FFC can pass it directly to ufc (and thus instant) in jit _if_ it
is needed, I think that would be the most robust solution.
Martin