← Back to team overview

dolfin team mailing list archive

Re: PyDOLFIN

 

On Fri, Sep 30, 2005 at 09:51:17AM +0200, Garth N. Wells wrote:
> Looks very nice Johan. Is there a trick to getting things to compile? Using
> "make -k" in /src/demo/scripting/pydolfin I'm getting a bunch of errors.
> 
> Garth
> 

...

> ./../../../include/dolfin/NodeIterator.h:74: Warning(312): Nested class not
> currently supported (ignored).
> ./../../../include/dolfin/NodeIterator.h:94: Error: Syntax error in input.
> ./../../../include/dolfin/NodeIterator.h:114: Error: Syntax error in input.
> ./../../../include/dolfin/NodeIterator.h:134: Error: Syntax error in input.
> ./../../../include/dolfin/NodeIterator.h:154: Error: Syntax error in input.
> ./../../../include/dolfin/CellIterator.h:77: Warning(312): Nested class not
> currently supported (
> 

Hm, one of the ideas behind SWIG is that it should be robust, and just
ignore problematic sections instead of giving up. Which version of
SWIG are you using?

I'm using:

$ swig -version

SWIG Version 1.3.24
Copyright (c) 1995-1998
University of Utah and the Regents of the University of California
Copyright (c) 1998-2004
University of Chicago
Compiled with g++ [i686-pc-linux-gnu]

This is the output I get related to NodeIterator.h :

...
../../../../include/dolfin/Point.h:40: Warning(362): operator= ignored
../../../../include/dolfin/NodeIterator.h:74: Warning(312): Nested class not currently supported (ignored).
../../../../include/dolfin/NodeIterator.h:94: Warning(312): Nested class not currently supported (ignored)
../../../../include/dolfin/NodeIterator.h:114: Warning(312): Nested class not currently supported (ignored)
../../../../include/dolfin/NodeIterator.h:134: Warning(312): Nested class not currently supported (ignored)
../../../../include/dolfin/NodeIterator.h:154: Warning(312): Nested class not currently supported (ignored)
../../../../include/dolfin/CellIterator.h:77: Warning(312): Nested class not currently supported (ignored).
...

  Johan



Follow ups

References