Commits

Matt Knepley committed 942a7a0

DMPlex: Removed unused variable

  • Participants
  • Parent commits 7eba1a1

Comments (0)

Files changed (1)

src/dm/impls/plex/plexfem.c

   PetscSection      fsection, fglobalSection;
   PetscSection      csection, cglobalSection;
   PetscScalar      *elemMat;
-  PetscInt          dim, Nf, f, fieldI, fieldJ, offsetI, offsetJ, numCells, cStart, cEnd, c;
+  PetscInt          dim, Nf, f, fieldI, fieldJ, offsetI, offsetJ, cStart, cEnd, c;
   PetscInt          rCellDof = 0, cCellDof = 0;
   PetscErrorCode    ierr;
 
   ierr = DMGetDefaultGlobalSection(dmc, &cglobalSection);CHKERRQ(ierr);
   ierr = PetscSectionGetNumFields(fsection, &Nf);CHKERRQ(ierr);
   ierr = DMPlexGetHeightStratum(dmc, 0, &cStart, &cEnd);CHKERRQ(ierr);
-  numCells = cEnd - cStart;
   ierr = PetscMalloc1(Nf,&feRef);CHKERRQ(ierr);
   for (f = 0; f < Nf; ++f) {
     PetscInt rNb, cNb, Nc;