[petsc-users] VecView in Ascii VTK mode

Norihiro Watanabe norihiro.w at gmail.com
Tue Nov 4 05:21:51 CST 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141104/0e7756c4/attachment.html>


More information about the petsc-users mailing list