[petsc-users] vtk format
Matthew Knepley
knepley at gmail.com
Mon Dec 16 14:55:00 CST 2013
On Sun, Dec 15, 2013 at 5:47 PM, Arash Mehraban <arashm81 at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131216/04091482/attachment.html>
More information about the petsc-users
mailing list