Commits

Matt Knepley committed 5469537

DMPlex: Fix comments

Comments (0)

Files changed (2)

src/dm/impls/plex/examples/tests/ex11.c

 #define __FUNCT__ "main"
 int main(int argc, char **argv)
 {
-  //AppCtx         user;                 /* user-defined work context */
+  /*AppCtx         user;                 /* user-defined work context */
   PetscErrorCode ierr;
 
   ierr = PetscInitialize(&argc, &argv, NULL, help);CHKERRQ(ierr);
-  //ierr = ProcessOptions(PETSC_COMM_WORLD, &user);CHKERRQ(ierr);
+  /*ierr = ProcessOptions(PETSC_COMM_WORLD, &user);CHKERRQ(ierr);*/
   ierr = TestInsertion();CHKERRQ(ierr);
   ierr = PetscFinalize();
   return 0;

src/dm/impls/plex/plex.c

 PetscErrorCode DMPlexPartition_ParMetis(DM dm, PetscInt numVertices, PetscInt start[], PetscInt adjacency[], PetscSection *partSection, IS *partition)
 {
   MPI_Comm       comm;
-  PetscInt       nvtxs      = numVertices; // The number of vertices in full graph
-  PetscInt      *vtxdist;                  // Distribution of vertices across processes
-  PetscInt      *xadj       = start;       // Start of edge list for each vertex
-  PetscInt      *adjncy     = adjacency;   // Edge lists for all vertices
-  PetscInt      *vwgt       = NULL;        // Vertex weights
-  PetscInt      *adjwgt     = NULL;        // Edge weights
-  PetscInt       wgtflag    = 0;           // Indicates which weights are present
-  PetscInt       numflag    = 0;           // Indicates initial offset (0 or 1)
-  PetscInt       ncon       = 1;           // The number of weights per vertex
-  PetscInt       nparts;                   // The number of partitions
-  PetscReal     *tpwgts;                   // The fraction of vertex weights assigned to each partition
-  PetscReal     *ubvec;                    // The balance intolerance for vertex weights
-  PetscInt       options[5];               // Options
-  // Outputs
-  PetscInt       edgeCut;                  // The number of edges cut by the partition
+  PetscInt       nvtxs      = numVertices; /* The number of vertices in full graph */
+  PetscInt      *vtxdist;                  /* Distribution of vertices across processes */
+  PetscInt      *xadj       = start;       /* Start of edge list for each vertex */
+  PetscInt      *adjncy     = adjacency;   /* Edge lists for all vertices */
+  PetscInt      *vwgt       = NULL;        /* Vertex weights */
+  PetscInt      *adjwgt     = NULL;        /* Edge weights */
+  PetscInt       wgtflag    = 0;           /* Indicates which weights are present */
+  PetscInt       numflag    = 0;           /* Indicates initial offset (0 or 1) */
+  PetscInt       ncon       = 1;           /* The number of weights per vertex */
+  PetscInt       nparts;                   /* The number of partitions */
+  PetscReal     *tpwgts;                   /* The fraction of vertex weights assigned to each partition */
+  PetscReal     *ubvec;                    /* The balance intolerance for vertex weights */
+  PetscInt       options[5];               /* Options */
+  /* Outputs */
+  PetscInt       edgeCut;                  /* The number of edges cut by the partition */
   PetscInt      *assignment, *points;
   PetscMPIInt    commSize, rank, p, v, i;
   PetscErrorCode ierr;