Commits

Matt Knepley committed 6402118

DMPlex: Fix compiler warning in submesh creation

Comments (0)

Files changed (1)

src/dm/impls/plex/plexsubmesh.c

         ierr = DMPlexSetSupport(sdm, hybedge, supportNew);CHKERRQ(ierr);
       } else if (dep == dim-2) {
         const PetscInt hybface = p + pMaxNew[dep+1] + numSplitPoints[dep+1] + numSplitPoints[dep];
-        PetscInt       hybcell;
+        PetscInt       hybcell = -1;
 
         /* Unsplit edge: Faces into original edge, split face, and cohesive face twice */
         for (f = 0, qf = 0; f < supportSize; ++f) {