Home
last modified time | relevance | path

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

/libCEED/examples/fluids/src/
H A Dmisc.c466 PetscInt *gather_buffer = NULL; in PrintRunInfo() local
469 if (!rank) PetscCall(PetscMalloc1(comm_size, &gather_buffer)); in PrintRunInfo()
471 PetscCallMPI(MPI_Gather(&owned_dofs, 1, MPIU_INT, gather_buffer, 1, MPIU_INT, 0, comm)); in PrintRunInfo()
473 PetscCall(PetscSortInt(comm_size, gather_buffer)); in PrintRunInfo()
474 part_owned_dofs[0] = gather_buffer[0]; // min in PrintRunInfo()
475 part_owned_dofs[1] = gather_buffer[comm_size - 1]; // max in PrintRunInfo()
476 part_owned_dofs[2] = gather_buffer[median_index]; // median in PrintRunInfo()
484 PetscCallMPI(MPI_Gather(&local_dofs, 1, MPIU_INT, gather_buffer, 1, MPIU_INT, 0, comm)); in PrintRunInfo()
486 PetscCall(PetscSortInt(comm_size, gather_buffer)); in PrintRunInfo()
487 part_local_dofs[0] = gather_buffer[0]; // min in PrintRunInfo()
[all …]