Commits

Matt Knepley committed 19d7d79

DMPlex: Fixed bug for label creation in hex refinement

  • Participants
  • Parent commits 4c8cfde

Comments (0)

Files changed (1)

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

             /* Old vertices stay the same */
             newp = vStartNew + (p - vStart);
             ierr = DMLabelSetValue(labelNew, newp, values[val]);CHKERRQ(ierr);
-          } else if ((p >= fStart) && (p < fEnd)) {
+          } else if ((p >= eStart) && (p < eEnd)) {
             /* Old edges add new edges and vertex */
             for (r = 0; r < 2; ++r) {
               newp = eStartNew + (p - eStart)*2 + r;