Lines Matching refs:mapout

93 static PetscErrorCode PetscParallelSampleSelect(PetscLayout mapin, PetscLayout mapout, PetscInt key…  in PetscParallelSampleSelect()  argument
117 … index = ((PetscReal)mapout->range[i + 1]) * ((PetscReal)mapin->n) / ((PetscReal)mapout->N); in PetscParallelSampleSelect()
136 if (mapout->range[i] == mapout->range[i + 1]) non_empty--; in PetscParallelSampleSelect()
234 static PetscErrorCode PetscParallelSortInt_Samplesort(PetscLayout mapin, PetscLayout mapout, PetscI… in PetscParallelSortInt_Samplesort() argument
248 PetscCall(PetscParallelSampleSelect(mapin, mapout, keysin, &pivots)); in PetscParallelSortInt_Samplesort()
284 PetscCall(PetscParallelRedistribute(mapout, nrecv, buffer, keysout)); in PetscParallelSortInt_Samplesort()
320 PetscErrorCode PetscParallelSortInt(PetscLayout mapin, PetscLayout mapout, PetscInt keysin[], Petsc… in PetscParallelSortInt() argument
328 PetscAssertPointer(mapout, 2); in PetscParallelSortInt()
329 PetscCallMPI(MPI_Comm_compare(mapin->comm, mapout->comm, &result)); in PetscParallelSortInt()
332 PetscCall(PetscLayoutSetUp(mapout)); in PetscParallelSortInt()
334 if (mapout->n) PetscAssertPointer(keysout, 4); in PetscParallelSortInt()
335mapout->N, mapin->comm, PETSC_ERR_ARG_SIZ, "Input and output layouts have different global sizes (… in PetscParallelSortInt()
339 PetscCall(PetscSortInt(mapout->n, keysout)); in PetscParallelSortInt()
347 PetscCall(PetscParallelSortInt_Samplesort(mapin, mapout, keysin, keysout)); in PetscParallelSortInt()
352 PetscCall(PetscParallelSortedInt(mapout->comm, mapout->n, keysout, &sorted)); in PetscParallelSortInt()
353 PetscCheck(sorted, mapout->comm, PETSC_ERR_PLIB, "samplesort sort failed"); in PetscParallelSortInt()