| /petsc/src/mat/tests/ |
| H A D | ex170.c | 63 PetscInt rStart, rEnd, row; in CreateGraph() local 69 PetscCall(MatGetOwnershipRange(G, &rStart, &rEnd)); in CreateGraph() 73 …if ((row >= rStart) && (row < rEnd)) PetscCall(MatSetValues(G, 1, &row, 2, cols, vals, INSERT_VALU… in CreateGraph() 77 …if ((row >= rStart) && (row < rEnd)) PetscCall(MatSetValues(G, 1, &row, 2, cols, vals, INSERT_VALU… in CreateGraph() 81 …if ((row >= rStart) && (row < rEnd)) PetscCall(MatSetValues(G, 1, &row, 2, cols, vals, INSERT_VALU… in CreateGraph() 85 …if ((row >= rStart) && (row < rEnd)) PetscCall(MatSetValues(G, 1, &row, 2, cols, vals, INSERT_VALU… in CreateGraph() 89 …if ((row >= rStart) && (row < rEnd)) PetscCall(MatSetValues(G, 1, &row, 2, cols, vals, INSERT_VALU… in CreateGraph() 96 PetscInt rStart, rEnd, row; in CreateGraph() local 102 PetscCall(MatGetOwnershipRange(G, &rStart, &rEnd)); in CreateGraph() 106 …if ((row >= rStart) && (row < rEnd)) PetscCall(MatSetValues(G, 1, &row, 2, cols, vals, INSERT_VALU… in CreateGraph() [all …]
|
| /petsc/src/mat/graphops/order/ |
| H A D | spectral.c | 23 PetscInt rStart, rEnd, r, colMax = 0; in MatCreateLaplacian() local 33 PetscCall(MatGetOwnershipRange(A, &rStart, &rEnd)); in MatCreateLaplacian() 35 for (r = rStart; r < rEnd; ++r) { in MatCreateLaplacian() 41 dnnz[r - rStart] = onnz[r - rStart] = 0; in MatCreateLaplacian() 47 ++dnnz[r - rStart]; in MatCreateLaplacian() 49 if ((cols[c] >= rStart) && (cols[c] < rEnd)) ++dnnz[r - rStart]; in MatCreateLaplacian() 50 else ++onnz[r - rStart]; in MatCreateLaplacian() 56 ++dnnz[r - rStart]; in MatCreateLaplacian() 65 for (r = rStart; r < rEnd; ++r) { in MatCreateLaplacian() 75 newVals[newcols] = dnnz[r - rStart] + onnz[r - rStart] - 1; in MatCreateLaplacian() [all …]
|
| /petsc/src/mat/impls/preallocator/ |
| H A D | matpreallocator.c | 48 PetscInt rStart, rEnd, r, cStart, cEnd, c, bs; in MatSetValues_Preallocator() local 52 PetscCall(MatGetOwnershipRange(A, &rStart, &rEnd)); in MatSetValues_Preallocator() 60 if ((key.i < rStart) || (key.i >= rEnd)) { in MatSetValues_Preallocator() 70 ++p->dnz[key.i - rStart / bs]; in MatSetValues_Preallocator() 71 if (key.j >= key.i) ++p->dnzu[key.i - rStart / bs]; in MatSetValues_Preallocator() 73 ++p->onz[key.i - rStart / bs]; in MatSetValues_Preallocator() 74 if (key.j >= key.i) ++p->onzu[key.i - rStart / bs]; in MatSetValues_Preallocator() 156 PetscInt n, maxrow = 1, *cols, rStart, rEnd, *rowstarts; in MatPreallocatorPreallocate_Preallocator() local 158 PetscCall(MatGetOwnershipRange(A, &rStart, &rEnd)); in MatPreallocatorPreallocate_Preallocator() 160 rStart /= bs; in MatPreallocatorPreallocate_Preallocator() [all …]
|
| /petsc/src/mat/utils/ |
| H A D | bandwidth.c | 22 PetscInt rStart, rEnd, r; in MatComputeBandwidth() local 29 PetscCall(MatGetOwnershipRange(A, &rStart, &rEnd)); in MatComputeBandwidth() 30 for (r = rStart; r < rEnd; ++r) { in MatComputeBandwidth()
|
| H A D | axpy.c | 498 PetscInt *newCols, rStart, rEnd, maxRows, r, colMax = 0, nnz0 = 0, nnz1 = 0; in MatFilter() local 506 PetscCall(MatGetSize(a, &rStart, &rEnd)); in MatFilter() 509 …for (maxRows = 0; maxRows < rStart; ++maxRows) newVals[maxRows + colMax * r] = PetscAbsScalar(newV… in MatFilter() 519 rStart = ranges[rank]; in MatFilter() 522 for (r = rStart; r < rEnd; ++r) { in MatFilter() 536 for (r = rStart; r < rStart + maxRows; ++r) { in MatFilter()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexpreallocate.c | 704 PetscInt rStart, rEnd, r, pStart, pEnd, p; in DMPlexUpdateAllocation_Static() local 708 PetscCall(PetscLayoutGetRange(rLayout, &rStart, &rEnd)); in DMPlexUpdateAllocation_Static() 709 …rStart % bs) == 0 && (rEnd % bs) == 0, PetscObjectComm((PetscObject)rLayout), PETSC_ERR_ARG_WRONG,… in DMPlexUpdateAllocation_Static() 723 if ((cols[c] >= rStart) && (cols[c] < rEnd)) { in DMPlexUpdateAllocation_Static() 724 ++dnz[r - rStart]; in DMPlexUpdateAllocation_Static() 725 if (cols[c] >= r) ++dnzu[r - rStart]; in DMPlexUpdateAllocation_Static() 727 ++onz[r - rStart]; in DMPlexUpdateAllocation_Static() 728 if (cols[c] >= r) ++onzu[r - rStart]; in DMPlexUpdateAllocation_Static() 735 for (r = rStart / bs; r < rEnd / bs; ++r) { in DMPlexUpdateAllocation_Static() 742 if ((cols[c] >= rStart) && (cols[c] < rEnd)) { in DMPlexUpdateAllocation_Static() [all …]
|
| /petsc/src/dm/impls/swarm/tests/ |
| H A D | ex4.c | 163 PetscInt dim, d, Np, p, rStart; in RHSJacobian() local 169 PetscCall(MatGetOwnershipRange(J, &rStart, NULL)); in RHSJacobian() 173 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobian() 219 PetscInt dim, d, Np, p, rStart; in RHSJacobianS() local 225 PetscCall(MatGetOwnershipRange(S, &rStart, NULL)); in RHSJacobianS() 229 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobianS()
|
| H A D | ex5.c | 135 PetscInt dim, d, Np, p, rStart; in RHSJacobian() local 141 PetscCall(MatGetOwnershipRange(J, &rStart, NULL)); in RHSJacobian() 152 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobian()
|
| H A D | ex6.c | 571 PetscInt dim, d, Np, p, rStart; in RHSJacobian() local 577 PetscCall(MatGetOwnershipRange(J, &rStart, NULL)); in RHSJacobian() 588 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobian() 665 PetscInt dim, d, Np, p, rStart; in RHSJacobianS() local 671 PetscCall(MatGetOwnershipRange(S, &rStart, NULL)); in RHSJacobianS() 675 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobianS()
|
| /petsc/src/snes/tests/ |
| H A D | ex68.c | 36 PetscInt rStart, rEnd, row; in ConstructProblem1() local 40 PetscCall(MatGetOwnershipRange(A, &rStart, &rEnd)); in ConstructProblem1() 41 for (row = rStart; row < rEnd; ++row) { in ConstructProblem1()
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpihashmat.h | 12 const PetscInt rStart = A->rmap->rstart; in MatSetValues_MPI_Hash() local 25 if (rows[r] < rStart || rows[r] >= rEnd) { in MatSetValues_MPI_Hash() 45 PetscCall(MatSetValue(a->A, rows[r] - rStart, cols[c] - cStart, value, addv)); in MatSetValues_MPI_Hash() 48 PetscCall(MatSetValue(a->B, rows[r] - rStart, cols[c], value, addv)); in MatSetValues_MPI_Hash()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex85.c | 11 PetscInt m = 5, n = 5, M = PETSC_DETERMINE, N = PETSC_DETERMINE, rStart, cStart; in main() local 22 PetscCall(MatGetOwnershipRange(G, &rStart, NULL)); in main() 79 for (PetscInt r = 0; r < m; ++r) locRows[r] = r + rStart; in main()
|
| /petsc/src/dm/impls/swarm/tests/output/ |
| H A D | ex2_proj_quad_2_faces_quad_order_3.out | 35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 25 colStart = 0 colEnd = 4
|
| H A D | ex2_proj_tri_quad_order_3.out | 35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 9 colStart = 0 colEnd = 2
|
| H A D | ex2_proj_quad_2_faces_quad_order_2.out | 35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 25 colStart = 0 colEnd = 4
|
| H A D | ex2_proj_0.out | 35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 4 colStart = 0 colEnd = 2
|
| H A D | ex2_proj_tri_2_faces_quad_order_3.out | 35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 25 colStart = 0 colEnd = 8
|
| /petsc/src/dm/impls/swarm/ |
| H A D | swarm.c | 476 PetscInt locRows, locCols, rStart, colStart, colEnd, *rowIDXs; in DMSwarmComputeMassMatrix_Private() local 511 PetscCall(PetscLayoutGetRange(rLayout, &rStart, NULL)); in DMSwarmComputeMassMatrix_Private() 558 key.i = cindices[j] * totNc + c + rStart; /* global cols (from Swarm) */ in DMSwarmComputeMassMatrix_Private() 562 if ((key.j >= colStart) && (key.j < colEnd)) ++dnz[key.i - rStart]; in DMSwarmComputeMassMatrix_Private() 563 else ++onz[key.i - rStart]; in DMSwarmComputeMassMatrix_Private() 623 for (PetscInt c = 0; c < Nc; ++c) rowIDXs[j * Nc + c] = cindices[j] * totNc + c + rStart; in DMSwarmComputeMassMatrix_Private() 699 PetscInt locRows, locCols, rStart, colStart, colEnd, *rowIDXs; in DMSwarmComputeMassMatrixSquare_Private() local 734 PetscCall(PetscLayoutGetRange(rLayout, &rStart, NULL)); in DMSwarmComputeMassMatrixSquare_Private() 774 key.i = cindices[i] + rStart; /* global rows (from Swarm) */ in DMSwarmComputeMassMatrixSquare_Private() 777 key.j = ncindices[j] + rStart; /* global column (from Swarm) */ in DMSwarmComputeMassMatrixSquare_Private() [all …]
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex55.c | 217 PetscInt pStart, pEnd, rStart; in main() local 225 PetscCall(VecGetOwnershipRange(v, &rStart, NULL)); in main()
|
| /petsc/src/vec/is/is/interface/ |
| H A D | index.c | 620 PetscInt n, i, rStart; in ISGetInfo_Permutation() local 628 PetscCall(PetscLayoutGetRange(is->map, &rStart, NULL)); in ISGetInfo_Permutation() 631 rStart = 0; in ISGetInfo_Permutation() 635 if (idx[i] != rStart + i) break; in ISGetInfo_Permutation() 735 PetscInt n, i, rStart; in ISGetInfo_Identity() local 740 PetscCall(PetscLayoutGetRange(is->map, &rStart, NULL)); in ISGetInfo_Identity() 743 if (idx[i] != rStart + i) break; in ISGetInfo_Identity()
|
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex3.c | 1188 PetscInt dim, d, Np, p, rStart; in RHSJacobian() local 1194 PetscCall(MatGetOwnershipRange(J, &rStart, NULL)); in RHSJacobian() 1203 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobian() 1295 PetscInt dim, d, Np, p, rStart; in RHSJacobianS() local 1301 PetscCall(MatGetOwnershipRange(S, &rStart, NULL)); in RHSJacobianS() 1305 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobianS()
|
| H A D | ex2.c | 1912 PetscInt dim, d, Np, p, rStart; in RHSJacobian() local 1918 PetscCall(MatGetOwnershipRange(J, &rStart, NULL)); in RHSJacobian() 1927 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobian() 2019 PetscInt dim, d, Np, p, rStart; in RHSJacobianS() local 2025 PetscCall(MatGetOwnershipRange(S, &rStart, NULL)); in RHSJacobianS() 2029 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobianS()
|
| H A D | ex4.c | 2517 PetscInt dim, d, Np, p, rStart; in RHSJacobian() local 2523 PetscCall(MatGetOwnershipRange(J, &rStart, NULL)); in RHSJacobian() 2532 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobian() 2624 PetscInt dim, d, Np, p, rStart; in RHSJacobianS() local 2630 PetscCall(MatGetOwnershipRange(S, &rStart, NULL)); in RHSJacobianS() 2634 const PetscInt rows[2] = {(p * 2 + 0) * dim + d + rStart, (p * 2 + 1) * dim + d + rStart}; in RHSJacobianS()
|
| /petsc/src/ksp/ksp/utils/dm/ |
| H A D | dmproject.c | 231 PetscInt debug = 0, rStart, rEnd, r, maxcols = 0, k, Nc, ldac, ldaf; in DMAdaptInterpolator() local 239 PetscCall(MatGetOwnershipRange(In, &rStart, &rEnd)); in DMAdaptInterpolator() 243 for (r = rStart; r < rEnd; ++r) { in DMAdaptInterpolator() 310 for (r = rStart; r < rEnd; ++r) { in DMAdaptInterpolator() 321 b[k] = wk * af[r - rStart + k * ldaf]; in DMAdaptInterpolator() 326 A[c * Nc + k] = wk * ac[cols[c] - rStart + k * ldac]; in DMAdaptInterpolator()
|
| /petsc/src/mat/impls/adj/mpi/ |
| H A D | mpiadj.c | 455 PetscInt rStart, rEnd, cStart, cEnd; in MatSetValues_MPIAdj() local 459 PetscCall(MatGetOwnershipRange(A, &rStart, &rEnd)); in MatSetValues_MPIAdj() 472 if ((key.i < rStart) || (key.i >= rEnd)) { in MatSetValues_MPIAdj()
|