The changelog is a bit brief on this. From: http://www-unix.mcs.anl.gov/petsc/petsc-as/documentation/changes/231.html
# PetscViewerFileType changed to PetscFileMode # PetscViewerSetFileType() changed to PetscViewerFileSetMode() PETSC_FILE_CREATE, PETSC_FILE_RDONLY etc were of type PetscViewerFileType These are replaced with typedef enum {FILE_MODE_READ, FILE_MODE_WRITE, FILE_MODE_APPEND, FILE_MODE_UPDATE, FILE_MODE_APPEND_UPDATE} PetscFileMode; Satish On Fri, 7 Jul 2006, liu chang wrote: > Dear all, > > I am a new user of Petsc and have been struggling to install 2.3.1 on > my workstation. I noticed that in Petsc 2.3.1 I can no longer find the > definitions of constants PETSC_FILE_CREATE, PETSC_FILE_RDONLY, etc, > which were in petscviewer.h in version 2.3.0. I looked through the > changelog and found nothing relevant. What has happened to these > constants? Some exisiting code uses these constants and I can no > longer compile them. Any advice? > > Thank you. > > Liu > >