[petsc-users] VecView in Ascii VTK mode

Norihiro Watanabe norihiro.w at gmail.com
Tue Nov 4 10:37:38 CST 2014


as far as I read http://www.vtk.org/VTK/img/file-formats.pdf, there is no
comment marker in ASCII VTK format.

Best,
nori

On Tue, Nov 4, 2014 at 5:22 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>   This is my fault. Is there a comment marker for ASCII VTK format? Let me
> know what it is and I’ll fix the code to make those lines comments and
> hence ignored by VTK
>
>   Barry
>
> > On Nov 4, 2014, at 5:21 AM, Norihiro Watanabe <norihiro.w at gmail.com>
> wrote:
> >
> > Hi,
> >
> > I've updated PETSc version from 3.4 to 3.5 and found that object names
> are printed in VecView() even for ASCII VTK format. Is there any changes in
> the VTK output since the new version?
> >
> > Our code is something like below.
> >
> > ==
> >     PetscViewerCreate(PETSC_COMM_WORLD, &viewer);
> >     PetscViewerSetType(viewer, PETSCVIEWERASCII);
> >     PetscViewerFileSetName(viewer, filename);
> >     PetscViewerSetFormat(viewer, PETSC_VIEWER_ASCII_VTK);
> >     VecView(x, viewer);
> > ==
> >
> > and VTK files created from v3.5 include additional two lines before
> POINT_DATA as
> >
> > ==
> > Vec Object:Concentration 4 MPI processes
> >   type: mpi
> > POINT_DATA 1915
> > SCALARS Concentration double 1
> > LOOKUP_TABLE default
> > 0.007413
> > 0.00741375
> > 0.00741394
> > ....
> > ==
> >
> >
> > Best,
> > Nori
> >
> > --
> > Norihiro Watanabe
>
>


-- 
Norihiro Watanabe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141104/75f5a890/attachment.html>


More information about the petsc-users mailing list