dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #04643
Re: PyDOLFIN %includes
> I have modified the way PyDOLFIN includes the interface files in
> dolfin.i. There is now a line
>
> %include "dolfin_headers.h"
>
> The file dolfin_headers.h is generated using the script generate.py
> which extracts all the dolfin headers from all the dolfin_foo.h files
> under src/kernel. This should mean that we don't need to give the
> -includeall flag to SWIG.
>
> Johan, could you take a look at this and see if it looks like a good
> idea?
>
> /Anders
One advantage of the -includeall method is that it includes the headers in
the correct order (in the dependency order). I have to go back and check
how important this really is, but as far as I remember this was a
necessary condition for generating the interface properly. But perhaps
it's simple to generate the list in the correct order.
The advantage with a generated header list is that it gives much more
control of what to include/exclude, so I agree that it's desirable.
Johan
Follow ups
References