Searched refs:globalProcs (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/snes/utils/dm/ |
| H A D | dminterpolatesnes.c | 188 PetscMPIInt *foundProcs, *globalProcs, in; in DMInterpolationSetUp() local 220 PetscCall(PetscMalloc3(N,&foundCells,N,&foundProcs,N,&globalProcs)); in DMInterpolationSetUp() 230 PetscCall(PetscMalloc2(N, &foundProcs, N, &globalProcs)); in DMInterpolationSetUp() 240 PetscCallMPI(MPIU_Allreduce(foundProcs, globalProcs, N, MPI_INT, MPI_MIN, comm)); in DMInterpolationSetUp() 243 if (globalProcs[p] == size) { in DMInterpolationSetUp() 247 } else if (globalProcs[p] == rank) ++ctx->n; in DMInterpolationSetUp() 257 if (globalProcs[p] == rank) { in DMInterpolationSetUp() 264 if (globalProcs[p] == size && rank == 0) { in DMInterpolationSetUp() 274 PetscCall(PetscFree3(foundCells,foundProcs,globalProcs)); in DMInterpolationSetUp() 276 PetscCall(PetscFree2(foundProcs, globalProcs)); in DMInterpolationSetUp()
|