← Back to team overview

dolfin team mailing list archive

Re: plotting in all stokes demos fails (DOLFIN 1.0.x)

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 05/24/2012 11:27 AM, Marie E. Rognes wrote:
> 
> 
> I ran across this once: it is a dolfin/viper compatibility issue as
> far as I remember. Do you have a newer viper than dolfin or vice
> versa?

I found it... my custom script did not handle the lp path for
fenics-viper properly, so I ended up with trunk instead of 1.0.x.

Thanks for the help!
- --
Andre


> 
> -- Marie
> 
> 
> On 05/24/2012 11:25 AM, Andre Massing wrote: Hi!
> 
> When I try to execute the stokes python examples in 
> demo/stokes-iterative or undocumented/stokes*
> 
> the plotting routine always fails with (here for the taylor-hood
> example)
> 
> Traceback (most recent call last): File
> "demo_stokes-taylor-hood.py", line 83, in<module> plot(u) File 
> "/home/andre/Work/software/FEniCS/install/stable/dolfin/release/lib/python2.7/site-packages/dolfin/common/plotting.py",
>
>  line 121, in dolfin_plot return
> viper_dolfin.plot(make_viper_object(object, mesh=mesh), *args,
> **kwargs) File 
> "/home/andre/Work/software/FEniCS/install/stable/lib/python2.7/site-packages/viper/viper_dolfin.py",
>
>  line 471, in plot fig = _plotter.plot(data, **kwargs) File 
> "/home/andre/Work/software/FEniCS/install/stable/lib/python2.7/site-packages/viper/viper_dolfin.py",
>
>  line 413, in plot return self.autoplot(plot_object, *args,
> **kwargs) File 
> "/home/andre/Work/software/FEniCS/install/stable/lib/python2.7/site-packages/viper/viper_dolfin.py",
>
>  line 432, in autoplot plotter = Viper(plot_object, *args,
> **kwargs) File 
> "/home/andre/Work/software/FEniCS/install/stable/lib/python2.7/site-packages/viper/viper_dolfin.py",
>
>  line 65, in __init__ self.plot(data, *args, **kwargs) File 
> "/home/andre/Work/software/FEniCS/install/stable/lib/python2.7/site-packages/viper/viper_dolfin.py",
>
>  line 90, in plot plot_method(data, *args, **kwargs) File 
> "/home/andre/Work/software/FEniCS/install/stable/lib/python2.7/site-packages/viper/viper_dolfin.py",
>
>  line 138, in plot_genericfunction self.x =
> data.compute_vertex_values(self.mesh) TypeError:
> compute_vertex_values() takes exactly 3 arguments (2 given)
> 
> Is that just me or is that a known bug?
> 
>> 
>> _______________________________________________ Mailing list:
>> https://launchpad.net/~dolfin Post to     :
>> dolfin@xxxxxxxxxxxxxxxxxxx Unsubscribe :
>> https://launchpad.net/~dolfin More help   :
>> https://help.launchpad.net/ListHelp
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPvgecAAoJEA79ggnbq9dmM+0IANdncXX6f4S2t6wQw45Z3gUp
+BMcgHwikzuYO11Mm9+eSQDKfw0WB7ps1wnje9T+7dBKxv12jn3ewG6v2vHiW86O
wWMrBVFCGkSUjQdPVvED02HyUiHx7AZhHmQ6Gq+FW3Azz9CzoyLyTOWYOXrB4iVd
aEVVGx7PBVdTyXXODSxVDEajbf2Bv5NUV6IA3rM2kPUyAsFTzcRkyuORulVLL4/I
l7knXsRww9oCQtNlpiU2Vj2jU+ulqDTMc7QLt9fqRrEbAJPgnHG8mTGBvz53ixyJ
yP9A8TmZibKbuPdi+qObDF8gtlHtDAfYJcfQ/jI8lgj6c0jnklv0seb3rFXllsI=
=rKKz
-----END PGP SIGNATURE-----


References