<div dir="ltr">On Thu, Apr 18, 2013 at 9:25 AM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Dharmendar Reddy <<a href="mailto:dharmareddy84@gmail.com">dharmareddy84@gmail.com</a>> writes:<br>

<br>
> ! This line gives a compile error, as PETSCVIEWERVTK is not defined for<br>
> FORTRAN<br>
> !  !call PetscViewerSetType(viewer, PETSCVIEWERVTK)<br></div></blockquote><div><br></div><div style>I have pushed a Fortran example of this now:</div><div style><br></div><div style>  src/dm/impls/plex/example/tutorials/ex1f90</div>
<div style><br></div><div style>  Thanks,</div><div style><br></div><div style>      Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">

</div>Oops, it didn't have a Fortran interface.  This is pushed:<br>
<br>
commit b584eeb14d1f56b4d67c33ffc07f5f2c4fb64bad<br>
Author: Jed Brown <jed@59A2.org><br>
Date:   Thu Apr 18 08:22:56 2013 -0500<br>
<br>
    Viewer: add PETSCVIEWERVTK for Fortran<br>
<br>
diff --git a/include/finclude/petscviewerdef.h b/include/finclude/petscviewerdef.h<br>
index 06a808d..79996e3 100644<br>
--- a/include/finclude/petscviewerdef.h<br>
+++ b/include/finclude/petscviewerdef.h<br>
@@ -22,6 +22,7 @@<br>
 #define PETSCVIEWERMATHEMATICA 'mathematica'<br>
 #define PETSCVIEWERNETCDF 'netcdf'<br>
 #define PETSCVIEWERHDF5 'hdf5'<br>
+#define PETSCVIEWERVTK 'vtk'<br>
 #define PETSCVIEWERMATLAB 'matlab'<br>
 #define PETSCVIEWERAMS 'ams'<br>
<br>
</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>