BarryFSmith  committed 96a8e8c

changed final argument to PetscPClose from PetscInt to int since this is an in returned from a system call

  • Participants
  • Parent commits 7ea2a77

Comments (0)

Files changed (4)

File include/petscsys.h

 #if defined(PETSC_HAVE_POPEN)
 PETSC_EXTERN PetscErrorCode PetscPOpen(MPI_Comm,const char[],const char[],const char[],FILE **);
-PETSC_EXTERN PetscErrorCode PetscPClose(MPI_Comm,FILE*,PetscInt*);
+PETSC_EXTERN PetscErrorCode PetscPClose(MPI_Comm,FILE*,int*);
 PETSC_EXTERN PetscErrorCode PetscSynchronizedPrintf(MPI_Comm,const char[],...);

File src/sys/error/err.c

   char           command[PETSC_MAX_PATH_LEN];
   const char     *pdir;
   FILE           *fp;
-  PetscInt       rval;
+  int            rval;
   ierr = PetscGetPetscDir(&pdir);if (ierr) PetscFunctionReturn(ierr);

File src/sys/fileio/fretrieve.c

   size_t         len = 0;
   PetscBool      flg1,flg2,flg3,sharedtmp,exists;
 #if defined(PETSC_HAVE_POPEN)
-  PetscInt       rval;
+  int            rval;

File src/sys/fileio/mpiuopen.c

 .seealso: PetscFOpen(), PetscFClose(), PetscPOpen()
-PetscErrorCode PetscPClose(MPI_Comm comm,FILE *fd,PetscInt *rval)
+PetscErrorCode PetscPClose(MPI_Comm comm,FILE *fd,int *rval)
   PetscErrorCode ierr;
   PetscMPIInt    rank;