Actual source code: zda2f.c

  1: #include <petsc/private/fortranimpl.h>
  2: #include <petsc/private/dmdaimpl.h>

  4: #if defined(PETSC_HAVE_FORTRAN_CAPS)
  5:   #define dmdacreate2d_ DMDACREATE2D
  6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
  7:   #define dmdacreate2d_ dmdacreate2d
  8: #endif

 10: PETSC_EXTERN void dmdacreate2d_(MPI_Comm *comm, DMBoundaryType *bx, DMBoundaryType *by, DMDAStencilType *stencil_type, PetscInt *M, PetscInt *N, PetscInt *m, PetscInt *n, PetscInt *w, PetscInt *s, PetscInt *lx, PetscInt *ly, DM *inra, PetscErrorCode *ierr)
 11: {
 12:   CHKFORTRANNULLINTEGER(lx);
 13:   CHKFORTRANNULLINTEGER(ly);
 14:   *ierr = DMDACreate2d(MPI_Comm_f2c(*(MPI_Fint *)&*comm), *bx, *by, *stencil_type, *M, *N, *m, *n, *w, *s, lx, ly, inra);
 15: }