Thread Previous • Date Previous • Date Next • Thread Next |
On Thu, Feb 01, 2007 at 04:46:51PM +0100, Johan Jansson wrote: > > On Thu, Feb 01, 2007 at 11:15:50AM +0100, Garth N. Wells wrote: > >> Should there be a Makefile.am in > >> > >> src/modules/python > >> > >> ? > >> > >> When running configure, I get the warning > >> > >> config.status: WARNING: src/modules/python/Makefile.in seems to ignore > >> the --datarootdir setting > >> > >> Garth > > > > A related question: What is src/modules/python doing? It looks like > > there are quite a few duplicate files in > > > > src/pydolfin > > > > and > > > > src/modules/python > > > > ? > > > > /Anders > > Yes, I just copied them. They should be included (%include) instead. I'll > try to fix this. ok. > What the "dolfinmodules" SWIG interface does is import (not include) the > entire DOLFIN interface and then only include the interface for the > modules. This means that the modules are aware of the DOLFIN data types, > but no code is generated for them. > > As far as I can see, this requires the inclusion of the pre and post > extensions/modifications to the interface. > > Johan Would it be possible to put the modules as a sub module to dolfin? from dolfin.modules import * or from dolfin.modules import nse from dolfin.modules import elasticity ? /Anders
Thread Previous • Date Previous • Date Next • Thread Next |