Lines Matching refs:lidxs
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()
1484 PetscCall(PetscMalloc1(newloc, &lidxs)); in MatCreateSubMatrix_IS()
1487 lidxs[newloc] = i; in MatCreateSubMatrix_IS()
1495 PetscCall(ISCreateGeneral(comm, newloc, lidxs, PETSC_OWN_POINTER, &newmatis->getsub_cis)); in MatCreateSubMatrix_IS()