Actual source code: zda1f.c
1: #include <petsc/private/fortranimpl.h>
2: #include <petscdmda.h>
4: #if defined(PETSC_HAVE_FORTRAN_CAPS)
5: #define dmdacreate1d_ DMDACREATE1D
6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
7: #define dmdacreate1d_ dmdacreate1d
8: #endif
10: PETSC_EXTERN void dmdacreate1d_(MPI_Comm *comm, DMBoundaryType *bx, PetscInt *M, PetscInt *w, PetscInt *s, PetscInt *lc, DM *inra, PetscErrorCode *ierr)
11: {
12: CHKFORTRANNULLINTEGER(lc);
13: *ierr = DMDACreate1d(MPI_Comm_f2c(*(MPI_Fint *)&*comm), *bx, *M, *w, *s, lc, inra);
14: }