Commits

Matt Knepley committed baf8153

DMPlex: Reorder tet output since I order tets differently

  • Participants
  • Parent commits 3a6464b

Comments (0)

Files changed (1)

src/dm/impls/plex/plexvtk.c

 
     for (c = cStart, numCells = 0; c < cEnd; ++c) {
       PetscInt *closure = NULL;
-      PetscInt closureSize, nC = 0;
+      PetscInt closureSize, nC = 0, tmp;
 
       if (hasLabel) {
         PetscInt value;
       }
       corners[numCells++] = nC;
       ierr = PetscFPrintf(comm, fp, "%d ", nC);CHKERRQ(ierr);
+      tmp        = closure[0];
+      closure[0] = closure[1];
+      closure[1] = tmp;
       for (v = 0; v < nC; ++v) {
         ierr = PetscFPrintf(comm, fp, " %d", closure[v]);CHKERRQ(ierr);
       }