[petsc-users] VecView in Ascii VTK mode

Barry Smith bsmith at mcs.anl.gov
Tue Nov 4 15:17:52 CST 2014


  Here is the patch you can apply to fix the problem.   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-ascii-vtk-output.patch
Type: application/octet-stream
Size: 713 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141104/8193bd16/attachment.obj>
-------------- next part --------------


   After applying it run make gnumake in the PETSc root directory and then relink your application code.

   Sorry for the inconvenience and thanks for reporting the problem.

  Barry

> On Nov 4, 2014, at 10:41 AM, Norihiro Watanabe <norihiro.w at gmail.com> wrote:
> 
> thank you!
> 
> On Tue, Nov 4, 2014 at 5:40 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>   Ok, then I?ll have it not print that information at all.
> 
>   Barry
> 
> > On Nov 4, 2014, at 10:37 AM, Norihiro Watanabe <norihiro.w at gmail.com> wrote:
> >
> > 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
> 
> 
> 
> 
> -- 
> Norihiro Watanabe



More information about the petsc-users mailing list