Commits

Matt Knepley  committed 50cf782

DMPlex: Remove warning in submesh code

  • Participants
  • Parent commits 6bdcce6

Comments (0)

Files changed (1)

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

       const PetscInt  newp = depthOffset[dep] + oldp;
       const PetscInt *cone;
       PetscInt        coneSize, c;
-      PetscBool       replaced = PETSC_FALSE;
+      /* PetscBool       replaced = PETSC_FALSE; */
 
       /* Negative edge: replace split vertex */
       /* Negative cell: replace split face */
           if (cp < 0) SETERRQ2(comm, PETSC_ERR_ARG_WRONG, "Point %d is not a split point of dimension %d", oldp, dep-1);
           csplitp  = pMaxNew[dep-1] + cp;
           ierr     = DMPlexInsertCone(sdm, newp, c, csplitp);CHKERRQ(ierr);
-          replaced = PETSC_TRUE;
+          /* replaced = PETSC_TRUE; */
         }
       }
       /* Cells with only a vertex or edge on the submesh have no replacement */