Lines Matching refs:nidx
56 PetscInt j, nidx; in PCGASMSubdomainView_Private() local
75 PetscCall(ISGetLocalSize(osm->iis[i], &nidx)); in PCGASMSubdomainView_Private()
76 PetscCall(PetscMalloc1(16 * (nidx + 1) + 1, &cidx)); in PCGASMSubdomainView_Private()
77 PetscCall(PetscViewerStringOpen(PETSC_COMM_SELF, cidx, 16 * (nidx + 1) + 1, &sviewer)); in PCGASMSubdomainView_Private()
79 …for (j = 0; j < nidx; ++j) PetscCall(PetscViewerStringSPrintf(sviewer, "%" PetscInt_FMT " ", idx[j… in PCGASMSubdomainView_Private()
101 PetscCall(ISGetLocalSize(osm->ois[i], &nidx)); in PCGASMSubdomainView_Private()
102 PetscCall(PetscMalloc1(16 * (nidx + 1) + 1, &cidx)); in PCGASMSubdomainView_Private()
103 PetscCall(PetscViewerStringOpen(PETSC_COMM_SELF, cidx, 16 * (nidx + 1) + 1, &sviewer)); in PCGASMSubdomainView_Private()
105 …for (j = 0; j < nidx; ++j) PetscCall(PetscViewerStringSPrintf(sviewer, "%" PetscInt_FMT " ", idx[j… in PCGASMSubdomainView_Private()
1418 PetscInt *count, nidx, *indices, *newidx, start = 0; in PCGASMCreateLocalSubdomains() local
1426 PetscCall(ISGetLocalSize(isnumb, &nidx)); in PCGASMCreateLocalSubdomains()
1427 PetscCall(PetscMalloc1(nidx, &indices)); in PCGASMCreateLocalSubdomains()
1428 for (i = 0; i < nidx; i++) indices[i] = i; /* needs to be initialized */ in PCGASMCreateLocalSubdomains()
1430 PetscCall(PetscSortIntWithPermutation(nidx, numbering, indices)); in PCGASMCreateLocalSubdomains()
1433 PetscCall(PetscMalloc1(nidx * bs, &newidx)); in PCGASMCreateLocalSubdomains()
1434 for (i = 0; i < nidx; i++) { in PCGASMCreateLocalSubdomains()
1438 nidx *= bs; in PCGASMCreateLocalSubdomains()
1442 for (i = 0; i < nidx; i++) indices[i] += rstart; in PCGASMCreateLocalSubdomains()
1624 PetscInt nidx, *idx; in PCGASMCreateSubdomains2D() local
1660 …ylow, xright, yhigh, first, last, (&xleft_loc), (&ylow_loc), (&xright_loc), (&yhigh_loc), (&nidx)); in PCGASMCreateSubdomains2D()
1661 if (nidx) ++s; in PCGASMCreateSubdomains2D()
1707 …ylow, xright, yhigh, first, last, (&xleft_loc), (&ylow_loc), (&xright_loc), (&yhigh_loc), (&nidx)); in PCGASMCreateSubdomains2D()
1708 nidx *= dof; in PCGASMCreateSubdomains2D()
1709 n[q] = nidx; in PCGASMCreateSubdomains2D()
1718 if (nidx) color = 1; in PCGASMCreateSubdomains2D()
1743 PetscCall(PetscMalloc1(nidx, &idx)); in PCGASMCreateSubdomains2D()
1744 if (nidx) { in PCGASMCreateSubdomains2D()
1755 PetscCall(ISCreateGeneral(subcomm, nidx, idx, PETSC_OWN_POINTER, (*xis) + s)); in PCGASMCreateSubdomains2D()