dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #25900
Re: compile-error in python user-defined expression
-
To:
Martin Sandve Alnæs <martinal@xxxxxxxxx>
-
From:
Johan Hake <hake.dev@xxxxxxxxx>
-
Date:
Fri, 07 Sep 2012 11:02:30 +0200
-
Cc:
dolfin-dev <dolfin@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<CADv7UFG1oTjK=aNzq2M1hDJvCGJ7N-com_uK8nJ=oFNQm+bZAQ@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0
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