← Back to team overview

dolfin team mailing list archive

Re: compile-error in python user-defined expression

 

On 09/07/2012 10:36 AM, Martin Sandve Alnæs wrote:
> Nice compromise! Probably should be documented.

Done.

Johan

> 
> Martin
> 
> 
> On 7 September 2012 09:33, Johan Hake <hake.dev@xxxxxxxxx> wrote:
>> I have now committed a fix for this particular situation. A dolfin
>> namespace is now not added to the code if already provided, enabling
>> things like:
>>
>> code = """
>> #include "dolfin/something/WhatEver.h"
>>
>> namespace dolfin {
>>
>> ...
>>
>> }
>> """
>>
>> e = Expression(code)
>>
>> Johan
>>
>> On 09/03/2012 03:47 PM, Marco Morandini wrote:
>>> The attached code used to work.
>>> Now I have to explicitly inlcude dolfin.h, because GenericDofMap.h
>>> is not included in the generated code.
>>>
>>> The workaround I've found is simple, but it is at the same time it is
>>> somewhat counter-intuitive: the expression code get wrapped inside the
>>> namespace "dolfin", that must be closed before including "dolfin.h", and
>>> then reopened.
>>>
>>> Marco
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dolfin
>>> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dolfin
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dolfin
>> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dolfin
>> More help   : https://help.launchpad.net/ListHelp



References