Searched refs:tosizes (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/vec/is/is/utils/ |
| H A D | iscoloring.c | 410 PetscInt *tosizes, *fromsizes, j, *tosizes_tmp, *tooffsets_tmp, ito_ln; in ISBuildTwoSided() local 435 PetscCall(PetscCalloc2(nto, &toranks, 2 * nto, &tosizes)); in ISBuildTwoSided() 440 tosizes[2 * nto] = tosizes_tmp[i]; /* size */ in ISBuildTwoSided() 441 tosizes[2 * nto + 1] = tooffsets_tmp[i]; /* offset */ in ISBuildTwoSided() 457 …PetscCall(PetscCommBuildTwoSided(comm, 2, MPIU_INT, nto, toranks, tosizes, &nfrom, &fromranks, &fr… in ISBuildTwoSided() 458 PetscCall(PetscFree2(toranks, tosizes)); in ISBuildTwoSided()
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiov.c | 92 PetscInt *tosizes, *tosizes_temp, *toffsets, *fromsizes, *todata, *fromdata; in MatIncreaseOverlap_MPIAIJ_Once_Scalable() local 118 PetscCall(PetscCalloc3(size, &toranks, 2 * size, &tosizes, size, &tosizes_temp)); in MatIncreaseOverlap_MPIAIJ_Once_Scalable() 146 PetscCall(PetscFree3(toranks, tosizes, tosizes_temp)); in MatIncreaseOverlap_MPIAIJ_Once_Scalable() 155 tosizes[nto * 2] = tosizes_temp[i] * 2; /* size */ in MatIncreaseOverlap_MPIAIJ_Once_Scalable() 163 toffsets[i + 1] = toffsets[i] + tosizes[2 * i]; /* offsets */ in MatIncreaseOverlap_MPIAIJ_Once_Scalable() 164 tosizes[2 * i + 1] = toffsets[i]; /* offsets to send */ in MatIncreaseOverlap_MPIAIJ_Once_Scalable() 167 …PetscCall(PetscCommBuildTwoSided(comm, 2, MPIU_INT, nto, toranks, tosizes, &nfrom, &fromranks, &fr… in MatIncreaseOverlap_MPIAIJ_Once_Scalable() 191 PetscCall(PetscFree3(toranks, tosizes, tosizes_temp)); in MatIncreaseOverlap_MPIAIJ_Once_Scalable() 201 …ll(PetscCommBuildTwoSided(comm, 2, MPIU_INT, nfrom, fromranks, sbsizes, &nto, &toranks, &tosizes)); in MatIncreaseOverlap_MPIAIJ_Once_Scalable() 204 for (PetscInt i = 0; i < nto; i++) nrecvrows += tosizes[2 * i]; in MatIncreaseOverlap_MPIAIJ_Once_Scalable() [all …]
|