Searched refs:newidx (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/dm/impls/plex/ |
| H A D | plexsection.c | 501 PetscInt *newidx, c; in DMCreateLocalSection_Plex() local 504 PetscCall(PetscMalloc1(cEnd - cEndInterior, &newidx)); in DMCreateLocalSection_Plex() 505 for (c = cEndInterior; c < cEnd; ++c) newidx[c - cEndInterior] = c; in DMCreateLocalSection_Plex() 507 …PetscCall(ISCreateGeneral(PETSC_COMM_SELF, cEnd - cEndInterior, newidx, PETSC_OWN_POINTER, &bcPoin… in DMCreateLocalSection_Plex() 539 PetscInt *newidx; in DMCreateLocalSection_Plex() local 562 PetscCall(PetscMalloc1(newn, &newidx)); in DMCreateLocalSection_Plex() 574 if ((idx[p] < cStart) || (idx[p] >= cEnd)) newidx[newn++] = idx[p]; in DMCreateLocalSection_Plex() 577 if ((idx[p] >= cStart) || (idx[p] < cEnd)) newidx[newn++] = idx[p]; in DMCreateLocalSection_Plex() 582 … PetscCall(ISCreateGeneral(PETSC_COMM_SELF, newn, newidx, PETSC_OWN_POINTER, &bcPoints[bc++])); in DMCreateLocalSection_Plex()
|
| /petsc/src/ksp/pc/impls/asm/ |
| H A D | asm.c | 1465 PetscInt *count, nidx, *indices, *newidx, start = 0; in PCASMCreateSubdomains() local 1480 PetscCall(PetscMalloc1(nidx * bs, &newidx)); in PCASMCreateSubdomains() 1482 for (j = 0; j < bs; j++) newidx[i * bs + j] = indices[i] * bs + j; in PCASMCreateSubdomains() 1486 indices = newidx; in PCASMCreateSubdomains()
|
| /petsc/src/ksp/pc/impls/gasm/ |
| H A D | gasm.c | 1418 PetscInt *count, nidx, *indices, *newidx, start = 0; in PCGASMCreateLocalSubdomains() local 1433 PetscCall(PetscMalloc1(nidx * bs, &newidx)); in PCGASMCreateLocalSubdomains() 1435 for (j = 0; j < bs; j++) newidx[i * bs + j] = indices[i] * bs + j; in PCGASMCreateLocalSubdomains() 1439 indices = newidx; in PCGASMCreateLocalSubdomains()
|