Nice compromise! Probably should be documented. Martin
On 7 September 2012 09:33, Johan Hake <hake....@gmail.com> 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@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~dolfin >> More help : https://help.launchpad.net/ListHelp >> > > > _______________________________________________ > Mailing list: https://launchpad.net/~dolfin > Post to : dolfin@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dolfin > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp