Lines Matching refs:nidx

86   PetscInt        i, j, nidx;  in PCASMPrintSubdomains()  local
99 PetscCall(ISGetLocalSize(osm->is[i], &nidx)); in PCASMPrintSubdomains()
102 #define len 16 * (nidx + 1) + 512 in PCASMPrintSubdomains()
107 …for (j = 0; j < nidx; j++) PetscCall(PetscViewerStringSPrintf(sviewer, "%" PetscInt_FMT " ", idx[j… in PCASMPrintSubdomains()
118 #define len 16 * (nidx + 1) + 512 in PCASMPrintSubdomains()
123 PetscCall(ISGetLocalSize(osm->is_local[i], &nidx)); in PCASMPrintSubdomains()
125 …for (j = 0; j < nidx; j++) PetscCall(PetscViewerStringSPrintf(sviewer, "%" PetscInt_FMT " ", idx[j… in PCASMPrintSubdomains()
1465 PetscInt *count, nidx, *indices, *newidx, start = 0; in PCASMCreateSubdomains() local
1473 PetscCall(ISGetLocalSize(isnumb, &nidx)); in PCASMCreateSubdomains()
1474 PetscCall(PetscMalloc1(nidx, &indices)); in PCASMCreateSubdomains()
1475 for (i = 0; i < nidx; i++) indices[i] = i; /* needs to be initialized */ in PCASMCreateSubdomains()
1477 PetscCall(PetscSortIntWithPermutation(nidx, numbering, indices)); in PCASMCreateSubdomains()
1480 PetscCall(PetscMalloc1(nidx * bs, &newidx)); in PCASMCreateSubdomains()
1481 for (i = 0; i < nidx; i++) { in PCASMCreateSubdomains()
1485 nidx *= bs; in PCASMCreateSubdomains()
1489 for (i = 0; i < nidx; i++) indices[i] += rstart; in PCASMCreateSubdomains()
1575 PetscInt nidx, *idx, loc, ii, jj, count; in PCASMCreateSubdomains2D() local
1600 nidx = (xright - xleft) * (yright - yleft); in PCASMCreateSubdomains2D()
1601 PetscCall(PetscMalloc1(nidx, &idx)); in PCASMCreateSubdomains2D()
1607 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, nidx, idx, PETSC_COPY_VALUES, (*is) + loc_outer)); in PCASMCreateSubdomains2D()