32 char *resultfile_dist);
63 int *tmp_index, tmp_nvtxs, tmp_sum_node, tmp_sum_adj, tmp_sum_elem, tmp_pe,
65 FILE *fp_test, *fp_orig, *fp;
66 char test_file[128], orig_file[128];
67 int *send_node_num, *send_node, *count_node, *send_adj_num, *count_adj,
68 *send_adj, *send_elem_num, *send_elem, *count_elem;
69 int *recv_node_num, *recv_elem_num, *recv_elem, *recv_node;
73 int tmp_int, *tmp_send, *tmp_recv;
74 int max_global_elem_num, new_n_elem;
75 int *elem_keep_flag, *elem_hit_flag, *node_global_hit;
77 int *recv_import_num, *recv_import, *send_import_num, *send_import,
78 *send_recv_num, import_num;
79 double *tmp_send_d, *tmp_recv_d;
80 int *global_new2old, *new_vtxdist, *vtxdist;
81 int tn_component, ne_internal, tmp_count;
86 fprintf(stderr,
"Start migration for generating new mesh among PEs \n");
103 vtxdist = (
int *)calloc(pesize + 1,
sizeof(
int));
104 for (i = 0; i < pesize + 1; i++) vtxdist[i] = graph->vtxdist[i];
117 fprintf(stderr,
"Start output balanced mesh and result to files\n");
122 sprintf(resultfile_dist,
"%s.%d", resultfile, mynode);
#define HECMW_FILENAME_LEN
char * HECMW_ctrl_get_result_fileheader(char *name_ID, int istep, int *fg_text)
struct hecmwST_result_data * new_data
void mesh_migration(int mynode, int pesize, Result_part *result, int *vtxdist)
void redistribute_mesh(GraphType *graph, Result_part *result, int mynode, int pesize)
void write_one_mesh_display(char *outfile, struct hecmwST_local_mesh *new_mesh, struct hecmwST_result_data *new_data, HECMW_Comm VIS_COMM, int mynode, int pesize)
struct hecmwST_local_mesh * new_mesh
void mesh_migration_adapt(int mynode, int pesize, Result_part *result, int *vtxdist)
void HECMW_put_result_from_structure(struct hecmwST_local_mesh *mesh, struct hecmwST_result_data *data, char *resultfile_dist)
struct hecmwST_local_mesh * mesh
void write_dist_mesh_display(char *outfile, struct hecmwST_local_mesh *new_mesh, struct hecmwST_result_data *new_data)
struct hecmwST_result_data * data
int HECMW_put_mesh(struct hecmwST_local_mesh *mesh, char *name_ID)