[petsc-users] [Fortran] VTK viewer error

Jed Brown jedbrown at mcs.anl.gov
Thu Apr 18 08:25:05 CDT 2013

Dharmendar Reddy <dharmareddy84 at gmail.com> writes:

> ! This line gives a compile error, as PETSCVIEWERVTK is not defined for
> !  !call PetscViewerSetType(viewer, PETSCVIEWERVTK)

Oops, it didn't have a Fortran interface.  This is pushed:

commit b584eeb14d1f56b4d67c33ffc07f5f2c4fb64bad
Author: Jed Brown <jed at 59A2.org>
Date:   Thu Apr 18 08:22:56 2013 -0500

    Viewer: add PETSCVIEWERVTK for Fortran

diff --git a/include/finclude/petscviewerdef.h b/include/finclude/petscviewerdef.h
index 06a808d..79996e3 100644
--- a/include/finclude/petscviewerdef.h
+++ b/include/finclude/petscviewerdef.h
@@ -22,6 +22,7 @@
 #define PETSCVIEWERMATHEMATICA 'mathematica'
 #define PETSCVIEWERNETCDF 'netcdf'
 #define PETSCVIEWERHDF5 'hdf5'
+#define PETSCVIEWERVTK 'vtk'
 #define PETSCVIEWERMATLAB 'matlab'
 #define PETSCVIEWERAMS 'ams'

More information about the petsc-users mailing list