Lines Matching full:malloc
210 gs = (PCTFS_gs_id *)malloc(sizeof(PCTFS_gs_id)); in gsi_new()
247 elms = (PetscInt *)malloc((nel + 1) * sizeof(PetscInt)); in gsi_check_args()
248 companion = (PetscInt *)malloc(nel * sizeof(PetscInt)); in gsi_check_args()
301 gs->local_reduce = local_reduce = (PetscInt **)malloc(num_local * sizeof(PetscInt *)); in gsi_check_args()
302 gs->num_local_reduce = num_to_reduce = (PetscInt *)malloc(num_local * sizeof(PetscInt)); in gsi_check_args()
304 unique = (PetscInt *)malloc((gs->nel + 1) * sizeof(PetscInt)); in gsi_check_args()
322 iptr = local_reduce[num_local++] = (PetscInt *)malloc(t2 * sizeof(PetscInt)); in gsi_check_args()
473 tree_buf = (PetscInt *)malloc(tree_buf_sz * sizeof(PetscInt)); in place_in_tree()
478 tree_buf = (PetscInt *)malloc(tree_buf_sz * sizeof(PetscInt)); in place_in_tree()
505 p_mask = (PetscInt *)malloc(p_mask_size = PCTFS_len_bit_mask(PCTFS_num_nodes)); in get_ngh_buf()
509 gs->nghs = sh_proc_mask = (PetscInt *)malloc(p_mask_size); in get_ngh_buf()
510 gs->pw_nghs = pw_sh_proc_mask = (PetscInt *)malloc(p_mask_size); in get_ngh_buf()
512 t_mask = (PetscInt *)malloc(p_mask_size); in get_ngh_buf()
513 gs->ngh_buf = ngh_buf = (PetscInt *)malloc(ngh_buf_size); in get_ngh_buf()
532 /* get PCTFS_giop buf space ... make *only* one malloc */ in get_ngh_buf()
533 buf1 = (PetscInt *)malloc(buf_size << 1); in get_ngh_buf()
635 gs->nghs = (PetscInt *)malloc(gs->num_nghs * sizeof(PetscInt)); in get_ngh_buf()
675 p_mask = (PetscInt *)malloc(p_mask_size); in set_pairwise()
676 tmp_proc_mask = (PetscInt *)malloc(p_mask_size); in set_pairwise()
684 gs->pw_elm_list = pairwise_elm_list = (PetscInt *)malloc((len_pair_list + 1) * sizeof(PetscInt)); in set_pairwise()
690 gs->pair_list = msg_list = (PetscInt *)malloc(sizeof(PetscInt) * nprs); in set_pairwise()
691 gs->msg_sizes = msg_size = (PetscInt *)malloc(sizeof(PetscInt) * nprs); in set_pairwise()
692 gs->node_list = msg_nodes = (PetscInt **)malloc(sizeof(PetscInt *) * (nprs + 1)); in set_pairwise()
709 gs->msg_ids_out = (MPI_Request *)malloc(sizeof(MPI_Request) * (nprs + 1)); in set_pairwise()
711 gs->msg_ids_in = (MPI_Request *)malloc(sizeof(MPI_Request) * (nprs + 1)); in set_pairwise()
713 gs->pw_vals = (PetscScalar *)malloc(sizeof(PetscScalar) * len_pair_list * vec_sz); in set_pairwise()
730 msg_nodes[i] = iptr = (PetscInt *)malloc(sizeof(PetscInt) * (ct + 1)); in set_pairwise()
763 gs->out = (PetscScalar *)malloc(sizeof(PetscScalar) * gs->msg_total * vec_sz); in set_pairwise()
764 gs->in = (PetscScalar *)malloc(sizeof(PetscScalar) * gs->msg_total * vec_sz); in set_pairwise()
766 /* reset malloc pool */ in set_pairwise()
787 gs->tree_buf = (PetscScalar *)malloc(sizeof(PetscScalar) * n * vec_sz); in set_tree()
788 gs->tree_work = (PetscScalar *)malloc(sizeof(PetscScalar) * n * vec_sz); in set_tree()
790 gs->tree_map_in = iptr_in = (PetscInt *)malloc(sizeof(PetscInt) * (j + 1)); in set_tree()
791 gs->tree_map_out = iptr_out = (PetscInt *)malloc(sizeof(PetscInt) * (j + 1)); in set_tree()