Actual source code: zf90da.c

  1: /*$Id: zf90da.c,v 1.14 2001/09/06 14:49:18 bsmith Exp $*/

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

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

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