| /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/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() 156 PetscInt n, maxrow = 1, *cols, rStart, rEnd, *rowstarts; in MatPreallocatorPreallocate_Preallocator() local 158 PetscCall(MatGetOwnershipRange(A, &rStart, &rEnd)); in MatPreallocatorPreallocate_Preallocator() 161 rEnd /= bs; in MatPreallocatorPreallocate_Preallocator() 163 PetscCall(PetscMalloc2(n, &cols, rEnd - rStart + 1, &rowstarts)); in MatPreallocatorPreallocate_Preallocator() 165 for (PetscInt i = 0; i < rEnd - rStart; i++) { in MatPreallocatorPreallocate_Preallocator() 169 …ts[rEnd - rStart] == n, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Hash claims %" PetscInt_FMT " entries, b… in MatPreallocatorPreallocate_Preallocator() 182 for (PetscInt i = 0; i < rEnd - rStart; i++) { in MatPreallocatorPreallocate_Preallocator()
|
| /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() 508 for (; colMax < rEnd; ++colMax) { in MatFilter() 520 rEnd = ranges[rank + 1]; in MatFilter() 522 for (r = rStart; r < rEnd; ++r) { in MatFilter() 537 if (r < rEnd) { in MatFilter()
|
| /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() 49 if ((cols[c] >= rStart) && (cols[c] < rEnd)) ++dnnz[r - rStart]; in MatCreateLaplacian() 65 for (r = rStart; r < rEnd; ++r) { in MatCreateLaplacian()
|
| /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/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 …rEnd % bs) == 0, PetscObjectComm((PetscObject)rLayout), PETSC_ERR_ARG_WRONG, "Invalid layout [%" P… in DMPlexUpdateAllocation_Static() 723 if ((cols[c] >= rStart) && (cols[c] < rEnd)) { 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() 751 for (r = 0; r < (rEnd - rStart) / bs; ++r) { in DMPlexUpdateAllocation_Static() 765 PetscInt rStart, rEnd, r, pStart, pEnd, p, len, maxRowLen = 0; in DMPlexFillMatrix_Static() local 768 PetscCall(PetscLayoutGetRange(rLayout, &rStart, &rEnd)); in DMPlexFillMatrix_Static() 769 for (r = rStart; r < rEnd; ++r) { in DMPlexFillMatrix_Static() [all …]
|
| H A D | plexfem.c | 3352 PetscInt locRows, rStart, rEnd; in DMPlexComputeMassMatrixGeneral() local 3378 PetscCall(PetscLayoutGetRange(rLayout, &rStart, &rEnd)); in DMPlexComputeMassMatrixGeneral() 3439 if ((key.j >= rStart) && (key.j < rEnd)) ++dnz[key.i - rStart]; in DMPlexComputeMassMatrixGeneral()
|
| /petsc/src/dm/impls/swarm/tests/output/ |
| H A D | ex2_proj_tri_2_faces_quad_order_3.out | 35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 25 colStart = 0 colEnd = 8
|
| H A D | ex2_proj_0.out | 35 DMSwarmComputeMassMatrix_Private: rStart = 0 rEnd = 4 colStart = 0 colEnd = 2
|
| 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
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpihashmat.h | 13 const PetscInt rEnd = A->rmap->rend; in MatSetValues_MPI_Hash() local 25 if (rows[r] < rStart || rows[r] >= rEnd) { in MatSetValues_MPI_Hash()
|
| /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()
|
| /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()
|
| /petsc/src/mat/interface/ |
| H A D | matrix.c | 7979 PetscInt n, rStart, rEnd, Nb = 0; in MatSelectVariableBlockSizes() local 7987 PetscCall(MatGetOwnershipRange(A, &rStart, &rEnd)); in MatSelectVariableBlockSizes() 7991 if (rows[i] < rStart || rows[i] >= rEnd) flg = PETSC_FALSE; in MatSelectVariableBlockSizes() 10734 PetscInt rStart, rEnd, r, nrow = 0; in MatFindZeroDiagonals() local 10738 PetscCall(MatGetOwnershipRange(mat, &rStart, &rEnd)); in MatFindZeroDiagonals() 10740 for (r = 0; r < rEnd - rStart; ++r) in MatFindZeroDiagonals() 10744 for (r = 0; r < rEnd - rStart; ++r) in MatFindZeroDiagonals()
|