← Back to team overview

dolfin team mailing list archive

Re: [Question #115298]: Output PVD with a different variable name

 

Question #115298 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/115298

    Status: Open => Answered

Anders Logg proposed the following answer:
On Mon, Jun 21, 2010 at 11:41:00AM -0000, Chris Richardson wrote:
> Question #115298 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/115298
>
>     Status: Answered => Open
>
> Chris Richardson is still having a problem:
> I tried this test:
>
> from dolfin import *
>
> m=UnitSquare(20,20)
> Q=FunctionSpace(m,"CG",1)
> F=Function(Q)
> F.rename("F","function")
>
> file=File("f.pvd")
> file << F
>
> but I still get this is f000000.vtu:
>
> <PointData  Scalars="U">
> <DataArray  type="Float32"  Name="U"  format="ascii">

ok. Looks like the name is ignored in VTKFile.cpp. I'll fix it.

--
Anders

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.