Commits

Jed Brown  committed 7213989 Merge

Merge branch 'knepley/pylith'

* knepley/pylith:
DMPlex: fix initialization of variables in degenerate case
DMPlex: add missing PetscFunctionBegin
DMPlex: fix compile warning on bsd

  • Participants
  • Parent commits d60cfbb, c0ed958

Comments (0)

Files changed (1)

File src/dm/impls/plex/plexsubmesh.c

   PetscInt        dim, cMax, cEnd, c, p, coneSize;
   PetscErrorCode  ierr;
 
+  PetscFunctionBegin;
+  *numFaces = 0;
+  *nFV = 0;
   ierr = DMPlexGetDimension(dm, &dim);CHKERRQ(ierr);
   ierr = DMPlexGetHeightStratum(dm, 0, NULL, &cEnd);CHKERRQ(ierr);
   ierr = DMPlexGetHybridBounds(dm, &cMax, NULL, NULL, NULL);CHKERRQ(ierr);
   PetscInt       dim, cMax, cEnd, c, d;
   PetscErrorCode ierr;
 
+  PetscFunctionBegin;
   ierr = DMPlexGetDimension(dm, &dim);CHKERRQ(ierr);
   ierr = DMPlexGetHeightStratum(dm, 0, NULL, &cEnd);CHKERRQ(ierr);
   ierr = DMPlexGetHybridBounds(dm, &cMax, NULL, NULL, NULL);CHKERRQ(ierr);