Home
last modified time | relevance | path

Searched refs:gather_buffer (Results 1 – 1 of 1) sorted by relevance

/honee/src/
H A Dmisc.c363 PetscInt *gather_buffer = NULL; in PrintRunInfo() local
366 if (!rank) PetscCall(PetscMalloc1(comm_size, &gather_buffer)); in PrintRunInfo()
368 PetscCallMPI(MPI_Gather(&owned_dofs, 1, MPIU_INT, gather_buffer, 1, MPIU_INT, 0, comm)); in PrintRunInfo()
370 PetscCall(PetscSortInt(comm_size, gather_buffer)); in PrintRunInfo()
371 part_owned_dofs[0] = gather_buffer[0]; // min in PrintRunInfo()
372 part_owned_dofs[1] = gather_buffer[comm_size - 1]; // max in PrintRunInfo()
373 part_owned_dofs[2] = gather_buffer[median_index]; // median in PrintRunInfo()
381 PetscCallMPI(MPI_Gather(&local_dofs, 1, MPIU_INT, gather_buffer, 1, MPIU_INT, 0, comm)); in PrintRunInfo()
383 PetscCall(PetscSortInt(comm_size, gather_buffer)); in PrintRunInfo()
384 part_local_dofs[0] = gather_buffer[0]; // min in PrintRunInfo()
[all …]