Searched refs:lidxs (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/dm/impls/plex/ |
| H A D | plexdd.c | 58 PetscInt rst, ren, c, *gidxs, *lidxs, *tidxs; in DMCreateDomainDecomposition_Plex() local 155 PetscCall(PetscMalloc1(nl, &lidxs)); in DMCreateDomainDecomposition_Plex() 156 for (PetscInt i = 0; i < nl; i++) lidxs[i] = -1; in DMCreateDomainDecomposition_Plex() 158 PetscCall(PetscSFBcastBegin(sectionSF, MPIU_INT, gidxs, lidxs, MPI_REPLACE)); in DMCreateDomainDecomposition_Plex() 159 PetscCall(PetscSFBcastEnd(sectionSF, MPIU_INT, gidxs, lidxs, MPI_REPLACE)); in DMCreateDomainDecomposition_Plex() 161 PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)dm), nl, lidxs, PETSC_OWN_POINTER, &lis)); in DMCreateDomainDecomposition_Plex() 201 PetscCall(ISGetIndices(gis, (const PetscInt **)&lidxs)); in DMCreateDomainDecomposition_Plex() 202 PetscCall(PetscSFReduceBegin(sectionSF, MPIU_INT, lidxs, gidxs, MPI_REPLACE)); in DMCreateDomainDecomposition_Plex() 203 PetscCall(PetscSFReduceEnd(sectionSF, MPIU_INT, lidxs, gidxs, MPI_REPLACE)); in DMCreateDomainDecomposition_Plex() 204 PetscCall(ISRestoreIndices(gis, (const PetscInt **)&lidxs)); in DMCreateDomainDecomposition_Plex() [all …]
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 569 PetscInt *lidxs, *work = NULL, *ilocal; in PetscLayoutMapLocal() local 578 PetscCall(PetscMalloc1(n, &lidxs)); in PetscLayoutMapLocal() 579 for (r = 0; r < n; ++r) lidxs[r] = -1; in PetscLayoutMapLocal() 597 PetscCall(PetscSFReduceBegin(sf, MPIU_INT, (PetscInt *)idxs, lidxs, MPI_LOR)); in PetscLayoutMapLocal() 598 PetscCall(PetscSFReduceEnd(sf, MPIU_INT, (PetscInt *)idxs, lidxs, MPI_LOR)); in PetscLayoutMapLocal() 618 if (lidxs[r] >= 0) { in PetscLayoutMapLocal() 620 lidxs[len++] = r; in PetscLayoutMapLocal() 623 if (oidxs) *oidxs = lidxs; in PetscLayoutMapLocal()
|
| /petsc/src/mat/impls/is/ |
| H A D | matis.c | 1419 PetscInt *lidxs, *lgidxs, *newgidxs; in MatCreateSubMatrix_IS() local 1439 PetscCall(PetscLayoutMapLocal(mat->rmap, m, idxs, &ll, &lidxs, &lgidxs)); in MatCreateSubMatrix_IS() 1442 for (i = 0; i < ll; i++) matis->sf_rootdata[lidxs[i]] = lgidxs[i] + 1; in MatCreateSubMatrix_IS() 1443 PetscCall(PetscFree(lidxs)); in MatCreateSubMatrix_IS() 1450 PetscCall(PetscMalloc1(newloc, &lidxs)); in MatCreateSubMatrix_IS() 1453 lidxs[newloc] = i; in MatCreateSubMatrix_IS() 1462 PetscCall(ISCreateGeneral(comm, newloc, lidxs, PETSC_OWN_POINTER, &newmatis->getsub_ris)); in MatCreateSubMatrix_IS() 1473 PetscCall(PetscLayoutMapLocal(mat->cmap, n, idxs, &ll, &lidxs, &lgidxs)); in MatCreateSubMatrix_IS() 1476 for (i = 0; i < ll; i++) matis->csf_rootdata[lidxs[i]] = lgidxs[i] + 1; in MatCreateSubMatrix_IS() 1477 PetscCall(PetscFree(lidxs)); in MatCreateSubMatrix_IS() [all …]
|