Lines Matching refs:numNeighbors
125 newC->numNeighbors = 0; in CharacteristicCreate()
557 PetscErrorCode CharacteristicSetNeighbors(Characteristic c, PetscInt numNeighbors, PetscMPIInt neig… in CharacteristicSetNeighbors() argument
560 PetscCall(PetscMPIIntCast(numNeighbors, &c->numNeighbors)); in CharacteristicSetNeighbors()
562 PetscCall(PetscMalloc1(numNeighbors, &c->neighbors)); in CharacteristicSetNeighbors()
563 PetscCall(PetscArraycpy(c->neighbors, neighbors, numNeighbors)); in CharacteristicSetNeighbors()
583 PetscCall(PetscArrayzero(c->needCount, c->numNeighbors)); in CharacteristicSendCoordinatesBegin()
586 …for (n = 1; n < c->numNeighbors; n++) PetscCallMPI(MPIU_Irecv(&c->fillCount[n], 1, MPIU_INT, c->ne… in CharacteristicSendCoordinatesBegin()
587 …for (n = 1; n < c->numNeighbors; n++) PetscCallMPI(MPIU_Send(&c->needCount[n], 1, MPIU_INT, c->nei… in CharacteristicSendCoordinatesBegin()
588 PetscCallMPI(MPI_Waitall(c->numNeighbors - 1, c->request, c->status)); in CharacteristicSendCoordinatesBegin()
592 for (n = 1; n < c->numNeighbors; n++) { in CharacteristicSendCoordinatesBegin()
599 for (n = 1; n < c->numNeighbors; n++) c->localOffsets[n] += c->needCount[0]; in CharacteristicSendCoordinatesBegin()
607 for (n = 1; n < c->numNeighbors; n++) { in CharacteristicSendCoordinatesBegin()
611 for (n = 1; n < c->numNeighbors; n++) { in CharacteristicSendCoordinatesBegin()
626 PetscCallMPI(MPI_Waitall(c->numNeighbors - 1, c->request, c->status)); in CharacteristicSendCoordinatesEnd()
641 …for (n = 1; n < c->numNeighbors; n++) PetscCallMPI(MPIU_Irecv(&(c->queue[c->localOffsets[n]]), c->… in CharacteristicGetValuesBegin()
642 …for (n = 1; n < c->numNeighbors; n++) PetscCallMPI(MPIU_Send(&(c->queueRemote[c->remoteOffsets[n]]… in CharacteristicGetValuesBegin()
649 PetscCallMPI(MPI_Waitall(c->numNeighbors - 1, c->request, c->status)); in CharacteristicGetValuesEnd()