42 float *x,
float *y,
float *z,
64 const int iTotVertices,
70 const int num_processors,
74 std::vector<short> set_assignment(iTotVertices);
76 const int architecture(1),
92 for (
int i = 0; i < start[iTotVertices]; i++) {
97 std::vector<int> ivertex_weights(iTotVertices);
99 for (
int i = 0; i < iTotVertices; i++) {
102 vertex_weights[i] += comm_weights[i];
105 if (vertex_weights[i] == 0) {
106 ivertex_weights[i] = 1;
108 ivertex_weights[i] = vertex_weights[i];
114 std::vector<float> fedge_weights(2*start[iTotVertices]);
116 for (
int i = 0; i < iTotVertices; i++) {
117 fedge_weights[i] = edge_weights[i];
118 fedge_weights[start[iTotVertices] + i] = edge_weights[i];
131 vertex_weights ? &ivertex_weights[0] : 0,
132 edge_weights ? &fedge_weights[0] : 0,
153 for (
int i = 0; i < start[iTotVertices]; i++) {
158 silent_cerr(
"chaco_interface(): partition failed" << std::endl);
161 for (
int i = 0; i < iTotVertices; i++) {
162 pParAmgProcs[i] = set_assignment[i];
int interface(int nvtxs, int *start, int *adjacency, int *vwgts, float *ewgts, float *x, float *y, float *z, char *outassignname, char *outfilename, short *assignment, int architecture, int ndims_tot, int mesh_dims[3], double *goal, int global_method, int local_method, int rqi_flag, int vmax, int ndims, double eigtol, long seed)
void chaco_interface(const int iTotVertices, int *start, int *adjacency, int *vertex_weights, int *comm_weights, int *edge_weights, const int num_processors, int *pParAmgProcs)