On Tue, Mar 4, 2014 at 12:31 PM, Xiangdong <[email protected]> wrote:
> What is the difference between PetscViewerSetType and > PetscViewerSetFormat? It seems that the first one take argument like > PETSCVIEWERVTK, while the second one takes PETSC_VIEWER_VTK_VTS. > A viewer type is the object type, just like other PETSc object, e.g. KSP. The format is a particular version of that output. For example, ASCII viewer is a type, whereas Matlab is a format. > By the way, how can I find a full list of formats? Clearly, > PETSC_VIEWER_VTK_VTS is not listed in online documentation for > PetscViewerSetFormat > > http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Viewer/PetscViewerSetFormat.html > It is listed in the complete list: http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Viewer/PetscViewerFormat.html Matt > Thank you. > > Xiangdong > > > On Tue, Mar 4, 2014 at 1:02 PM, Matthew Knepley <[email protected]> wrote: > >> On Tue, Mar 4, 2014 at 11:44 AM, Xiangdong <[email protected]> wrote: >> >>> Hello everyone, >>> >>> When I use PetsViewerVTKOpen to output vec in vtk format, is it in ASCII >>> format or binary format? Are there any options to choose between them? >>> >> >> It is determined by the format, e.g. PETSC_VIEWER_VTK_VTU. >> >> Matt >> >> >>> Thank you. >>> >>> Xiangdong >>> >> >> >> >> -- >> What most experimenters take for granted before they begin their >> experiments is infinitely more interesting than any results to which their >> experiments lead. >> -- Norbert Wiener >> > > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener
