On Wed, Aug 12, 2009 at 6:13 PM, Anders Logg<[email protected]> wrote: > 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?
As long as a is not lost afterwards (i.e. a reference is kept) this should be correct. 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) >> > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkqC6iQACgkQTuwUCDsYZdFQSgCfQvcnZKSsCzstxu5mQAcyunBS > /SwAn0VRlNSaIIq6vDuFBZcqcwl1T/Bw > =wpTd > -----END PGP SIGNATURE----- > > _______________________________________________ > DOLFIN-dev mailing list > [email protected] > http://www.fenics.org/mailman/listinfo/dolfin-dev > > -- Ola Skavhaug _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
