33 char test_filename[128], out_filename[128];
38 int maxnvtxs = -1, maxnedges = -1;
39 int readew = -1, readvw = -1, dummy, edge;
40 idxtype *vtxdist, *xadj, *adjncy, *vwgt, *adjwgt;
41 idxtype *your_xadj, *your_adjncy, *your_vwgt, *your_adjwgt, graphinfo[4];
44 struct Global_inf *global_index;
52 int cglevel, adaplevel, tmp, neibpetot, *neibpe, allnodtotcur, intnodetotcur,
53 *idnode, *whennode, *xyz;
63 fprintf(stderr,
"Start graph repartition now ...\n");
69 if (flag_control == 0)
77 graph = (GraphType *)malloc(
sizeof(GraphType));
86 fprintf(stderr,
"the edgecut number is %d\n", result->
edgecut);
101 fprintf(stderr,
"Finish repartition now. \n");
102 fprintf(stderr,
"The time for repartition is %lf\n", t2 - t1);
103 fprintf(stderr,
"Start migration...\n");
int HECMW_Comm_rank(HECMW_Comm comm, int *rank)
int HECMW_Comm_size(HECMW_Comm comm, int *size)
int HECMW_Barrier(HECMW_Comm comm)
#define HECMW_FILENAME_LEN
char * HECMW_ctrl_get_control_file(char *name_ID)
int HECMW_ctrl_is_exists_control(char *name_ID)
void HECMW_dlb_memory_exit(char *var)
struct hecmwST_result_data * new_data
void mesh2graph(struct hecmwST_local_mesh *mesh, GraphType *graph, Control_para *ctl_para, int stat_para[NUM_CONTROL_PARAS], Result_part *result, HECMW_Comm repart_comm)
void hecmw_dlb_read_control(char *contfile, Control_para *ctl_para, int stat_para[NUM_CONTROL_PARAS], int pesize)
void redistribute_mesh(GraphType *graph, Result_part *result, int mynode, int pesize)
void hecmw_dynamic_load_balancing_()
struct hecmwST_local_mesh * new_mesh
void hecmw_dlb_set_default_control(Control_para *ctl_para, int stat_para[NUM_CONTROL_PARAS], int pesize)
struct hecmwST_local_mesh * mesh
struct hecmwST_result_data * data
#define NUM_CONTROL_PARAS