Subject: [Viper-dev] CamelCap to lower case

From: Kristian Oelgaard <[email-masked]>
Date: Tue, 28 Apr 2009 14:12:40 +0200

Hello,

I get:
Solving linear variational problem
  Applying boundary conditions to linear system.
  Solving linear system of size 1089 x 1089 (PETSc LU solver, umfpack).
Plotting v (unnamed function), press 'q' to continue...
Traceback (most recent call last):
  File "/home/oelgaard/local/bin/viper", line 200, in <module>
    _newmain()
  File "/home/oelgaard/local/bin/viper", line 195, in _newmain
    p = __main(infile, lutfile, mode)
  File "/home/oelgaard/local/bin/viper", line 130, in __main
    return _plot_mesh(infile, lutfile, mode)
  File "/home/oelgaard/local/bin/viper", line 104, in _plot_mesh
    return dolfin.plot(d)
  File
"/home/oelgaard/fenics/dolfin/local/lib/python2.6/site-packages/dolfin/plot.py",
line 51, in dolfin_plot
    return viper_plot(object, *args, **kwargs)
  File "/home/oelgaard/local/lib/python2.6/site-packages/viper/viper_dolfin.py",
line 423, in plot
    fig = _plotter.plot(data, **kwargs)
  File "/home/oelgaard/local/lib/python2.6/site-packages/viper/viper_dolfin.py",
line 373, in plot
    return self.autoplot(plot_object, *args, **kwargs)
  File "/home/oelgaard/local/lib/python2.6/site-packages/viper/viper_dolfin.py",
line 387, in autoplot
    plotter = Viper(plot_object, *args, **kwargs)
  File "/home/oelgaard/local/lib/python2.6/site-packages/viper/viper_dolfin.py",
line 43, in __init__
    self.plot(data, *args, **kwargs)
  File "/home/oelgaard/local/lib/python2.6/site-packages/viper/viper_dolfin.py",
line 66, in plot
    self.plot_mesh(data, *args, **kwargs)
  File "/home/oelgaard/local/lib/python2.6/site-packages/viper/viper_dolfin.py",
line 87, in plot_mesh
    self.x = numpy.zeros(self.mesh.numVertices())
AttributeError: 'Mesh' object has no attribute 'numVertices'
*** Warning: Unable to plot.

when running the poisson demo.

Could someone please do search-replace

numVertices -> num_vertices
numCells -> num_cells

in viper_dolfin.py?

Kristian

---

From: Ola Skavhaug <[email-masked]>
Date: Tue, 28 Apr 2009 15:54:59 +0200

> numVertices -> num_vertices

Done.

Ola

> Kristian
>
>
> _______________________________________________
> Viper-dev mailing list
> [email-masked]
> http://fenics.org/mailman/listinfo/viper-dev
>

-- 
Ola Skavhaug