On Sun, Dec 15, 2013 at 5:47 PM, Arash Mehraban <[email protected]> wrote:
> Hi all, > > I was wondering if PETSc could write my (vector) solution into a *vtk*format > file? > I think DMDAVTKWriteAll might work, but I couldn't get it to work. For > example, how could I store the solution in ex29.c on > http://www.mcs.anl.gov/petsc/petsc-current/src/ksp/ksp/examples/tutorials/ex29.c.html > into a vtk-format file? > You should be able to use -vec_view ::vtk from the command line or PetscViewerSetType(viewer, PETSCVIEWERVTK) for binary output, and PetscViewerPushFormat(viewer, PETSC_VIEWER_ASCII_VTK) for text. Thanks, Matt > Thanks in advance, > > Arash > -- 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
