Home
last modified time | relevance | path

Searched refs:petsc_indices (Results 1 – 2 of 2) sorted by relevance

/petsc/src/vec/is/ao/tests/
H A Dex5.c19 PetscInt *app_indices, *petsc_indices, *ia, *ia0; in main() local
38 PetscCall(PetscMalloc1(local_size, &petsc_indices)); in main()
42 petsc_indices[i] = end - 1 - i; in main()
47 PetscCall(ISCreateGeneral(comm, local_size, &petsc_indices[0], PETSC_COPY_VALUES, &petsc_is)); in main()
87 PetscCall(PetscFree(petsc_indices)); in main()
/petsc/src/dm/impls/plex/
H A Dplexceed.c276 …nt length, PetscInt max_bound, const char *max_bound_name, PetscInt **petsc_indices, CeedInt **cee… in PetscIntArrayIntoCeedInt_Private() argument
279 if (length) PetscAssertPointer(petsc_indices, 3); in PetscIntArrayIntoCeedInt_Private()
286 for (PetscInt i = 0; i < length; i++) ceed_ind[i] = (*petsc_indices)[i]; in PetscIntArrayIntoCeedInt_Private()
288 PetscCall(PetscFree(*petsc_indices)); in PetscIntArrayIntoCeedInt_Private()
291 *ceed_indices = *petsc_indices; in PetscIntArrayIntoCeedInt_Private()
292 *petsc_indices = NULL; in PetscIntArrayIntoCeedInt_Private()