Commits

Vijay Mahadevan  committed b3c6c0c

Updating the Plex partition function to perform the right cast.

  • Participants
  • Parent commits 6917d02
  • Branches dmmoab

Comments (0)

Files changed (1)

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

     if (vtxdist[1] == vtxdist[nparts]) {
       if (!rank) {
         PetscStackPush("METIS_PartGraphKway");
-        ierr = METIS_PartGraphKway(&nvtxs, &ncon, xadj, adjncy, vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, NULL, &edgeCut, assignment);
+        ierr = METIS_PartGraphKway(&nvtxs, &ncon, xadj, adjncy, vwgt, NULL, adjwgt, &nparts, (real_t*)tpwgts, (real_t*)ubvec, NULL, &edgeCut, assignment);
         PetscStackPop;
         if (ierr != METIS_OK) SETERRQ(PETSC_COMM_SELF, PETSC_ERR_LIB, "Error in METIS_PartGraphKway()");
       }
     } else {
       PetscStackPush("ParMETIS_V3_PartKway");
-      ierr = ParMETIS_V3_PartKway(vtxdist, xadj, adjncy, vwgt, adjwgt, &wgtflag, &numflag, &ncon, &nparts, tpwgts, ubvec, options, &edgeCut, assignment, &comm);
+      ierr = ParMETIS_V3_PartKway(vtxdist, xadj, adjncy, vwgt, adjwgt, &wgtflag, &numflag, &ncon, &nparts, (real_t*)tpwgts, (real_t*)ubvec, options, &edgeCut, assignment, &comm);
       PetscStackPop;
       if (ierr != METIS_OK) SETERRQ(PETSC_COMM_SELF, PETSC_ERR_LIB, "Error in ParMETIS_V3_PartKway()");
     }