Lines Matching refs:startv
446 PetscInt *owner, *startv, *starti, bs2; in MatStashScatterBegin_Ref() local
524 PetscCall(PetscMalloc2(size, &startv, size, &starti)); in MatStashScatterBegin_Ref()
526 startv[0] = 0; in MatStashScatterBegin_Ref()
529 startv[i] = startv[i - 1] + nlengths[i - 1]; in MatStashScatterBegin_Ref()
543 svalues[startv[j]] = sp_val[l]; in MatStashScatterBegin_Ref()
547 buf1 = svalues + bs2 * startv[j]; in MatStashScatterBegin_Ref()
553 startv[j]++; in MatStashScatterBegin_Ref()
559 startv[0] = 0; in MatStashScatterBegin_Ref()
560 for (PetscMPIInt i = 1; i < size; i++) startv[i] = startv[i - 1] + nlengths[i - 1]; in MatStashScatterBegin_Ref()
564 …PetscCallMPI(MPIU_Isend(sindices + 2 * startv[i], 2 * nlengths[i], MPIU_INT, i, tag1, comm, send_w… in MatStashScatterBegin_Ref()
565 …PetscCallMPI(MPIU_Isend(svalues + bs2 * startv[i], bs2 * nlengths[i], MPIU_SCALAR, i, tag2, comm, … in MatStashScatterBegin_Ref()
576 PetscCall(PetscFree2(startv, starti)); in MatStashScatterBegin_Ref()