Searched refs:ifrom (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/dm/tutorials/ |
| H A D | ex6.c | 40 PetscInt i, start, end, *ifrom, x, y, xm, ym; in main() local 63 PetscCall(PetscMalloc1(xm, &ifrom)); in main() 64 for (i = x; i < x + xm; i++) ifrom[i - x] = M * i; in main() 66 PetscCall(AOApplicationToPetsc(ao, xm, ifrom)); in main() 68 PetscCall(ISCreateGeneral(PETSC_COMM_WORLD, xm, ifrom, PETSC_OWN_POINTER, &from)); in main() 70 PetscCall(PetscFree(ifrom)); in main() 83 PetscCall(PetscMalloc1(ym, &ifrom)); in main() 84 for (i = y; i < y + ym; i++) ifrom[i - y] = i; in main() 86 PetscCall(AOApplicationToPetsc(ao, ym, ifrom)); in main() 88 PetscCall(ISCreateGeneral(PETSC_COMM_WORLD, ym, ifrom, PETSC_OWN_POINTER, &from)); in main() [all …]
|
| /petsc/src/vec/vec/tutorials/ |
| H A D | ex14f.F90 | 18 PetscInt nlocal, nghost, ifrom(2) 58 ifrom(1) = 11 59 ifrom(2) = 6 61 ifrom(1) = 0 62 ifrom(2) = 5 71 …teGhostBlockWithArray(PETSC_COMM_WORLD, bs, nlocal, PETSC_DECIDE, nghost, ifrom, tarray, gxs, ierr… 73 …PetscCallA(VecCreateGhostBlock(PETSC_COMM_WORLD, bs, nlocal, PETSC_DECIDE, nghost, ifrom, gxs, ier…
|
| H A D | ex9f.F90 | 18 PetscInt nlocal, nghost, ifrom(2) 56 ifrom(1) = 11 57 ifrom(2) = 6 59 ifrom(1) = 0 60 ifrom(2) = 5 69 …PetscCallA(VecCreateGhostWithArray(PETSC_COMM_WORLD, nlocal, PETSC_DECIDE, nghost, ifrom, tarray, … 71 PetscCallA(VecCreateGhost(PETSC_COMM_WORLD, nlocal, PETSC_DECIDE, nghost, ifrom, gxs, ierr))
|
| H A D | ex9.c | 22 PetscInt nlocal = 6, nghost = 2, ifrom[2], i, rstart, rend; in main() local 57 ifrom[0] = 11; in main() 58 ifrom[1] = 6; in main() 60 ifrom[0] = 0; in main() 61 ifrom[1] = 5; in main() 74 …PetscCall(VecCreateGhostWithArray(PETSC_COMM_WORLD, nlocal, PETSC_DECIDE, nghost, ifrom, tarray, &… in main() 79 PetscCall(VecMPISetGhost(gxs, nghost, ifrom)); in main() 81 PetscCall(VecCreateGhost(PETSC_COMM_WORLD, nlocal, PETSC_DECIDE, nghost, ifrom, &gxs)); in main()
|