Searched refs:nrootsalloc (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 111 nrootsalloc = size; in main() 122 nrootsalloc = nroots * stride; in main() 148 …PetscCall(PetscSFSetGraph(sf, nrootsalloc, nleaves, mine, PETSC_OWN_POINTER, remote, PETSC_OWN_POI… in main() 161 nrootsalloc *= bs; in main() 175 PetscCall(PetscMalloc2(nrootsalloc, &rootdata, nleavesalloc, &leafdata)); in main() 177 for (i = 0; i < nrootsalloc; i++) rootdata[i] = -1; in main() 190 PetscCall(PetscIntView(nrootsalloc, rootdata, PETSC_VIEWER_STDOUT_WORLD)); in main() 200 PetscCall(PetscMalloc2(nrootsalloc, &rootdata, nleavesalloc, &leafdata)); in main() 202 for (i = 0; i < nrootsalloc; i++) rootdata[i] = '*'; in main() [all …]
|
| H A D | ex1f.F90 | 12 PetscInt i, nroots, nrootsalloc, nleaves, nleavesalloc, mine(6), stride 37 nrootsalloc = nroots*stride 64 …PetscCallA(PetscSFSetGraph(sf, nrootsalloc, nleaves, mine, PETSC_COPY_VALUES, remote, PETSC_COPY_V… 75 do i = 1, nrootsalloc 91 PetscCallA(PetscIntView(nrootsalloc, rootdata, PETSC_VIEWER_STDOUT_WORLD, ierr)) 101 PetscCallA(PetscIntView(nrootsalloc, rootdata, PETSC_VIEWER_STDOUT_WORLD, ierr)) 123 …PetscCallA(PetscSFSetGraph(sf, nrootsalloc, nleaves, PETSC_NULL_INTEGER_ARRAY, PETSC_COPY_VALUES, …
|