Searched refs:nleavesalloc (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/vec/is/sf/tutorials/ |
| H A D | ex1.c | 40 PetscInt i, bs = 2, nroots, nrootsalloc, nleaves, nleavesalloc, *mine, stride; in main() local 113 nleavesalloc = size; in main() 124 nleavesalloc = nleaves * stride; in main() 162 nleavesalloc *= bs; in main() 175 PetscCall(PetscMalloc2(nrootsalloc, &rootdata, nleavesalloc, &leafdata)); in main() 180 for (i = 0; i < nleavesalloc; i++) leafdata[i] = -1; in main() 192 PetscCall(PetscIntView(nleavesalloc, leafdata, PETSC_VIEWER_STDOUT_WORLD)); in main() 200 PetscCall(PetscMalloc2(nrootsalloc, &rootdata, nleavesalloc, &leafdata)); in main() 205 for (i = 0; i < nleavesalloc; i++) leafdata[i] = '?'; in main() 225 for (i = 0; i < nleavesalloc; i++) { in main() [all …]
|
| H A D | ex1f.F90 | 12 PetscInt i, nroots, nrootsalloc, nleaves, nleavesalloc, mine(6), stride 43 nleavesalloc = nleaves*stride 83 do i = 1, nleavesalloc 93 PetscCallA(PetscIntView(nleavesalloc, leafdata, PETSC_VIEWER_STDOUT_WORLD, ierr)) 99 PetscCallA(PetscIntView(nleavesalloc, leafdata, PETSC_VIEWER_STDOUT_WORLD, ierr))
|