It might be something with the call to SetVoidArray in make_vtk_grid in viper.py. Commenting out the line
ita.SetVoidArray(a, len(a), 1) it does not crash anymore and I get a plot, but the plot is empty. Ola? -- Anders On Tue, Aug 11, 2009 at 05:30:18PM -0400, Shawn Walker wrote: > That fits with the error I got when I tried to run the Stokes demo. > It plotted the vector velocity with no problem. But when it tried > to plot the pressure, it gave me that error. > > I've tried googling about the error, but I could not find anything > definitive. > > - Shawn > > On Tue, 11 Aug 2009, Anders Logg wrote: > > >On Tue, Aug 11, 2009 at 09:26:13PM +0200, Anders Logg wrote: > >>Yet another update: Same problem with VTK 5.4 and I can use VTK from > >>Python directly without problem (when not going through Viper). > > > >The plot thickens. I can plot vector-valued functions with Viper but > >not scalars, and not meshes. In particular, I can do > > > > plot(grad(u)) > > > >in the Poisson demo, but not > > > > plot(u) > >
signature.asc
Description: Digital signature
_______________________________________________ DOLFIN-dev mailing list DOLFIN-dev@fenics.org http://www.fenics.org/mailman/listinfo/dolfin-dev