← Back to team overview

dolfin team mailing list archive

Re: [Viper-dev] Plotting vector field

 



Ola Skavhaug wrote:
Anders Logg skrev den 28/04-2007 følgende:
There seems (or might be) something wrong with plotting of vector
fields in viper.

I'm not able to compile dofin after my last pull, so it's difficult to track
this error.
My dolfin errors are:
SubSystem.cpp:113: error: 'const class ufc::dof_map' has no member named
'num_sub_dof_maps'


I had this error yesterday and thought that I had the latest UFC, but I had two versions (under /usr/local/include and /usr/include).

Garth

../../../src/kernel/function/dolfin/Function.h:15:32: error:
dolfin/SubFunction.h: No such file or directory

For the record, also ufc is fresh from the repos.

Ola
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
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev





Follow ups

References