← Back to team overview

dolfin team mailing list archive

Re: dolfin/python error

 



Shawn Walker wrote:
Ok, this is a different error but has to do with viper.

When I try to run the example on the web page (for viper), I get this:

u = Function("poisson.xml")
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
File "/home/walker/build/lib/python2.6/site-packages/dolfin/function.py", line 521, in __new__
     raise TypeError, "The first argument must be a 'cpp.FunctionSpace'"
TypeError: The first argument must be a 'cpp.FunctionSpace'

Any suggestions?


Yes, the first argument should be a cpp.FunctionSpace ;).

The example is outdated. To create a function, should need to supply the function space and read the vector from a file. Take a look at demo/pde/advection-diffusion/python

Garth

- Shawn
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev




References