← Back to team overview

dolfin team mailing list archive

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

 

On 24 May 2012 10:28, Andre Massing <massing@xxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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?
>>
>
>
> I just found a corresponding bug here
> https://bugs.launchpad.net/dolfin/+bug/955855
>
> Has the fix been backported to the 1.0.x version of viper?

No, because it's not a fix. It was a change that followed a change to
the dolfin-dev Python interface. I don't believe that the DOLFIN 1.0
interface was changed.

Garth

> - --
> Andre
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJPvf86AAoJEA79ggnbq9dmRZYH/1Vtpk17fpWOD+RcrLBR0Ikp
> /JkoeSx7XRHLQupmQx43qNIlmSEq1kb7M2DDckIP/1+ubPeDIUFahjUIcjPhV4IB
> w9wLfYXENRpzABgdu4DZ9fSu7M8uKQvDTyqk/S9GC+gvc3ARHaN2WH5uOOKProIA
> 1T/SSVr+ilFmTxpuIXw8weIHOxi5BAHPi6LNbaYYeKvTYgRx5r6KGX61sk9HWIGI
> uTwGhbxSlEJaFtcgxDpBNMkK4M/uBzAAZ0/hRCSMafwex/84D2B95KTTyryUu0ZG
> A5wgpJqsSQvP8NJIQ8a0M7wcHXsbLe1YYN7m9RjmqqZAjCXmj+CR/zRjnaWiKUc=
> =VHDs
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp


References