Try the DOLFIN demo in src/pde/stokes/taylor-hood. I get the following
error message:
Reading function from velocity.xml.
Reading vector from file velocity.xml.
Reading mesh from file velocity.xml.
Traceback (most recent call last):
File "plot.py", line 5, in ?
plot(u)
File "/usr/lib/python2.4/site-packages/viper/viper_dolfin.py", line
83, in plot
viper = Viper(data, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/viper/viper_dolfin.py", line
13, in __init__
self.plot(data, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/viper/viper_dolfin.py", line
20, in plot
self.plot_function(data, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/viper/viper_dolfin.py", line
60, in plot_function
(self.iren, self.renWin, self.ren) =
self.vector_plotter(self.vtkgrid, self.mesh.coordinates(), self.x,
self.x.min(), self.x.max(), wireframe=False)
File "/usr/lib/python2.4/site-packages/viper/viper.py", line 392, in
vector_plotter
vectors = self._vectors_from_numpy(coords, x)
File "/usr/lib/python2.4/site-packages/viper/viper.py", line 348, in
_vectors_from_numpy
directions_3d[:,:m] = directions
ValueError: shape mismatch: objects cannot be broadcast to a single
shape
/Anders
_______________________________________________
Viper-dev mailing list
Viper-dev@xxxxxxxxxx
http://fenics.org/mailman/listinfo/viper-dev