Actual source code: zda3f.c

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

  4: #if defined(PETSC_HAVE_FORTRAN_CAPS)
  5:   #define dmdacreate3d_ DMDACREATE3D
  6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
  7:   #define dmdacreate3d_ dmdacreate3d
  8: #endif

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