[petsc-users] VecView in Ascii VTK mode

Barry Smith bsmith at mcs.anl.gov
Tue Nov 4 10:22:37 CST 2014


  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



More information about the petsc-users mailing list