<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Dec 15, 2013 at 5:47 PM, Arash Mehraban <span dir="ltr"><<a href="mailto:arashm81@gmail.com" target="_blank">arashm81@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi all,<br><br>I was wondering if PETSc could write my (vector) solution into a <i><b>vtk</b></i> format file?<br>
</div>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 <a href="http://www.mcs.anl.gov/petsc/petsc-current/src/ksp/ksp/examples/tutorials/ex29.c.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/src/ksp/ksp/examples/tutorials/ex29.c.html</a> into a vtk-format file?<br>
</div></div></div></blockquote><div><br></div><div>You should be able to use -vec_view ::vtk from the command line or PetscViewerSetType(viewer, PETSCVIEWERVTK) for binary</div><div>output, and PetscViewerPushFormat(viewer, PETSC_VIEWER_ASCII_VTK) for text.</div>
<div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div></div>Thanks in advance,<br>
<br></div>Arash<br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>