← Back to team overview

dolfin team mailing list archive

Re: PyDOLFIN and str()

 

On Wednesday 19 August 2009 21:19:53 Garth N. Wells wrote:
> Why can't I use GenericVector::str() from PyDOLFIN,
>
>     u0.vector().str()
>
> ? I get the message
>
>    AttributeError: 'GenericVector' object has no attribute 'str'

Variable.str() is changed to Variable.__str__ so you can do:

  print v

in python. However you should be able to:

  info(v,True)

for a verbose presentation.

Johan

> I want to print the entire vector.
>
> Garth
>
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev


References