[petsc-users] [Fortran] VTK viewer error

Matthew Knepley knepley at gmail.com
Thu Apr 18 11:06:45 CDT 2013


On Thu, Apr 18, 2013 at 9:25 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> Dharmendar Reddy <dharmareddy84 at gmail.com> writes:
>
> > ! This line gives a compile error, as PETSCVIEWERVTK is not defined for
> > FORTRAN
> > !  !call PetscViewerSetType(viewer, PETSCVIEWERVTK)
>

I have pushed a Fortran example of this now:

  src/dm/impls/plex/example/tutorials/ex1f90

  Thanks,

      Matt


> 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'
>
>


-- 
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/20130418/c6ef7297/attachment.html>


More information about the petsc-users mailing list