Actual source code: zf90da.c

      2: #include "petscda.h"
      3: #include "petscf90.h"

      5: #ifdef PETSC_HAVE_FORTRAN_CAPS
      6: #define dagetglobalindicesf90_     DAGETGLOBALINDICESF90
      7: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
      8: #define dagetglobalindicesf90_     dagetglobalindicesf90
      9: #endif

     12: void PETSC_STDCALL dagetglobalindicesf90_(DA *da,int *n,F90Array1d *indices,int *ierr)
     13: {
     14:   int *idx;
     15:   *DAGetGlobalIndices(*da,n,&idx); if (*ierr) return;
     16:   *F90Array1dCreate(idx,PETSC_INT,1,*n,indices);
     17: }