Searched refs:nleavesA (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/vec/is/sf/tests/ |
| H A D | ex4.c | 8 PetscInt nrootsA, nleavesA, nrootsB, nleavesB; in main() local 34 nleavesA = 3; in main() 39 nrootsA = nrootsB = nleavesA = nleavesB = 4; in main() 41 PetscCall(PetscMalloc1(nleavesA, &ilocalA)); in main() 42 PetscCall(PetscMalloc1(nleavesA, &iremoteA)); in main() 46 for (i = 0; i < nleavesA; i++) { in main() 50 ilocalA[i] = (i + 1) % nleavesA; in main() 52 ilocalA[i] = nleavesA - i - 1; in main() 67 …PetscCall(PetscSFSetGraph(sfA, nrootsA, nleavesA, ilocalA, PETSC_OWN_POINTER, iremoteA, PETSC_OWN_… in main() 75 PetscCall(VecCreateSeq(PETSC_COMM_WORLD, nleavesA, &b)); in main()
|
| H A D | ex5.c | 81 PetscInt nrootsA, nleavesA, nrootsB, nleavesB; in main() local 120 nleavesA = rank == 0 ? size * m : 0; in main() 124 PetscCall(PetscMalloc1(nleavesA, &ilocalA)); in main() 125 PetscCall(PetscMalloc1(nleavesA, &iremoteA)); in main() 131 for (i = 0; i < nleavesA; i++) { in main() 145 …PetscCall(PetscSFSetGraph(sfA, nrootsA, nleavesA, ilocalA, PETSC_OWN_POINTER, iremoteA, PETSC_OWN_… in main()
|