Subject: Re: [Viper-dev] [DOLFIN-dev] [HG DOLFIN] Fix 1D Poisson demo. Set up the problem to be identical to the cpp version. Viper doesn't work with 1D though.

From: Kristian Oelgaard <[email-masked]>
Date: Sat, 13 Dec 2008 12:46:06 +0100

Quoting DOLFIN <[email-masked]>:

> One or more new changesets pushed to the primary dolfin repository.
> A short summary of the last three changesets is included below.
> 
> changeset:   5325:732ddd33be70d18a728a939d9ef9914f97628c1f
> tag:         tip
> user:        "Kristian Oelgaard <[email-masked]>"
> date:        Sat Dec 13 11:36:26 2008 +0000
> files:       TODO demo/pde/poisson1D/python/demo.py
> description:
> Fix 1D Poisson demo. Set up the problem to be identical to the cpp version.
> Viper doesn't work with 1D though.

The demo works, but plotting with viper doesn't:

  File "demo.py", line 63, in <module>
    plot(u, interactive=True)
  File "/home/oelgaard/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 271, in plot
    fig = _plotter.plot(data, **kwargs)
  File "/home/oelgaard/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 221, in plot
    return self.autoplot(plot_object, *args, **kwargs)
  File "/home/oelgaard/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 235, in autoplot
    plotter = Viper(plot_object, *args, **kwargs)
  File "/home/oelgaard/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 43, in __init__
    self.plot(data, *args, **kwargs)
  File "/home/oelgaard/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 69, in plot
    self.plot_function(data, *args, **kwargs)
  File "/home/oelgaard/local/lib/python2.5/site-packages/viper/viper_dolfin.py",
line 139, in plot_function
    self._update(self.x)
  File "/home/oelgaard/local/lib/python2.5/site-packages/viper/viper.py", line
668, in update
    self.scalarbar.VisibilityOn()
AttributeError: 'Viper' object has no attribute 'scalarbar'

This goes for both the Python and cpp version.

Kristian
 
> 
> changeset:   5324:3e8aefd2651932a91f3c148327f41bfd7ad02499
> user:        "Kristian Oelgaard <[email-masked]>"
> date:        Sat Dec 13 10:59:07 2008 +0000
> files:       demo/pde/dg/poisson/python/demo.py
> description:
> Use '*' instead of 'dot()' in dg/poisson/demo.py
> 
> 
> changeset:   5323:641d9ef5646c82a621dbc6b6400200480843e38d
> user:        "Kristian Oelgaard <[email-masked]>"
> date:        Fri Dec 12 19:49:57 2008 +0000
> files:       TODO demo/pde/dg/poisson/cpp/main.cpp
> demo/pde/dg/poisson/python/demo.py site-packages/dolfin/specialfunctions.py
> description:
> Fix copy/paste bug in specialfunctions.py and make dg/poisson demo work.
> 
> ----------------------------------------------------------------------
> For more details, visit http://www.fenics.org/hg/dolfin
> _______________________________________________
> DOLFIN-dev mailing list
> [email-masked]
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>