Actual source code: zplexsubmesh.c

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

  4: #if defined(PETSC_HAVE_FORTRAN_CAPS)
  5:   #define dmplexconstructghostcells_ DMPLEXCONSTRUCTGHOSTCELLS
  6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
  7:   #define dmplexconstructghostcells_ dmplexconstructghostcells
  8: #endif

 10: /* Definitions of Fortran Wrapper routines */
 11: PETSC_EXTERN void dmplexconstructghostcells_(DM *dm, char *name, PetscInt *numGhostCells, DM *dmGhosted, int *ierr, PETSC_FORTRAN_CHARLEN_T lenN)
 12: {
 13:   char *labelname;

 15:   FIXCHAR(name, lenN, labelname);
 16:   *ierr = DMPlexConstructGhostCells(*dm, labelname, numGhostCells, dmGhosted);
 17:   if (*ierr) return;
 18:   FREECHAR(name, labelname);
 19: }