Home
last modified time | relevance | path

Searched refs:rStart (Results 1 – 25 of 27) sorted by relevance

12

/petsc/src/mat/tests/
H A Dex170.c63 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 Dspectral.c23 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 Dmatpreallocator.c48 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 Dbandwidth.c22 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 Daxpy.c498 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 Dplexpreallocate.c704 PetscInt rStart, rEnd, r, pStart, pEnd, p; in DMPlexUpdateAllocation_Static() local
708 PetscCall(PetscLayoutGetRange(rLayout, &rStart, &rEnd)); in DMPlexUpdateAllocation_Static()
709rStart % 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 Dex4.c163 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 Dex5.c135 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 Dex6.c571 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 Dex68.c36 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 Dmpihashmat.h12 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 Dex85.c11 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 Dex2_proj_quad_2_faces_quad_order_3.out35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 25 colStart = 0 colEnd = 4
H A Dex2_proj_tri_quad_order_3.out35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 9 colStart = 0 colEnd = 2
H A Dex2_proj_quad_2_faces_quad_order_2.out35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 25 colStart = 0 colEnd = 4
H A Dex2_proj_0.out35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 4 colStart = 0 colEnd = 2
H A Dex2_proj_tri_2_faces_quad_order_3.out35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 25 colStart = 0 colEnd = 8
/petsc/src/dm/impls/swarm/
H A Dswarm.c476 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 Dex55.c217 PetscInt pStart, pEnd, rStart; in main() local
225 PetscCall(VecGetOwnershipRange(v, &rStart, NULL)); in main()
/petsc/src/vec/is/is/interface/
H A Dindex.c620 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 Dex3.c1188 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 Dex2.c1912 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 Dex4.c2517 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 Ddmproject.c231 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 Dmpiadj.c455 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()

12