| /petsc/src/mat/tests/ |
| H A D | ex75.c | 12 …PetscInt n, col[3], n1, block, row, i, j, i2, j2, Ii, J, rstart, rend, bs = 1, mbs = 16, d_nz =… in main() local 134 PetscCall(MatGetSize(A, &i2, &j2)); in main() 136 j -= j2; in main() 143 PetscCall(MatGetLocalSize(A, &i2, &j2)); in main() 145 j2 -= j; in main() 146 if (i2 || j2) { in main() 183 PetscCall(MatGetOwnershipRange(A, &i2, &j2)); in main() 185 j2 -= rend; in main() 186 if (i2 || j2) { in main()
|
| H A D | ex90.c | 49 PetscInt j1[] = {0, 1, 3, 1, 2}, j2[] = {0, 2, 1, 2, 3}; in main() local 63 …rrays(comm, 2, 2, PETSC_DETERMINE, PETSC_DETERMINE, rank ? i2 : i1, rank ? j2 : j1, rank ? a2 : a1… in main()
|
| H A D | ex266.c | 23 …PetscInt j2[] = {7, 1, 2, 11, 5, 2, 7, 3, 2, 7, 3, 8, 4, 9, 3, 5, 7, 3, 6, 11, 0, 1, 13, 5, 2, 7, … in main() local 33 {i2, j2, PETSC_STATIC_ARRAY_LENGTH(i2)} in main()
|
| H A D | ex123.c | 17 PetscInt j2[] = {1, 4, 3, 5, 3, 3, 4, 0, 1, -1, -1}; in main() local 78 for (i = 0; i < n2; i++) j2[i] += cstart; in main() 81 for (i = 0; i < n2; i++) j2[i] += cstart + m; in main() 127 PetscCall(PetscArraycpy(jt, j2, n2)); in main() 142 PetscCall(PetscArraycpy(jt, j2, n2)); in main()
|
| H A D | ex254.c | 25 …PetscInt j2[] = {7, 1, 2, 11, 5, 2, 7, 3, 2, 7, 3, 8, 4, 9, 3, 5, 7, 3, 6, 11, 0, 1, 13, 5, 2, 7, … in main() local 35 {i2, j2, PETSC_STATIC_ARRAY_LENGTH(i2)} in main()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex51.c | 265 PetscInt i1, j1, i2, j2; in Form2DElementMass() local 269 for (j2 = 0; j2 < (P + 1); ++j2) { in Form2DElementMass() 274 indx2 = j2 * (P + 1) + i2; in Form2DElementMass() 275 indx3 = (j2 * (P + 1) + j1) * (P + 1) * (P + 1) + (i2 * (P + 1) + i1); in Form2DElementMass() 289 PetscInt i1, j1, i2, j2; in Form2DElementStiffness() local 293 for (j2 = 0; j2 < (P + 1); ++j2) { in Form2DElementStiffness() 298 indx2 = j2 * (P + 1) + i2; in Form2DElementStiffness() 299 indx3 = (j2 * (P + 1) + j1) * (P + 1) * (P + 1) + (i2 * (P + 1) + i1); in Form2DElementStiffness()
|
| /petsc/src/ksp/ksp/tests/ |
| H A D | ex10.c | 85 PetscInt i, j, k, i1, i2, j_1, j2, k1, k2, h1, h2, shiftx, shifty, shiftz; in GetElasticityMatrix() local 117 for (j2 = 0; j2 < 3; j2++) { in GetElasticityMatrix() 119 r2 = base + i2 * shiftx + j2 * shifty + k2 * shiftz; in GetElasticityMatrix()
|
| /petsc/src/mat/impls/aij/seq/ |
| H A D | matmatmult.c | 637 PetscInt j2, col2; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Heap() local 638 PetscCall(PetscHeapPeek(h, &j2, &col2)); in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Heap() 640 PetscCall(PetscHeapPop(h, &j2, &col2)); in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Heap() 641 if (bb[j2] < bi[acol[j2] + 1]) PetscCall(PetscHeapStash(h, j2, bj[bb[j2]++])); in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Heap()
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiaij.c | 6081 static PetscErrorCode MatMergeEntries_Internal(Mat mat, const PetscInt j1[], const PetscInt j2[], c… in MatMergeEntries_Internal() argument 6096 if (j1[b1] == j2[b2]) { /* Same column index and hence same nonzero */ in MatMergeEntries_Internal() 6105 } else if (j1[b1] < j2[b2]) { in MatMergeEntries_Internal() 6112 j[t] = j2[b2]; in MatMergeEntries_Internal() 6128 j[t] = j2[b2]; in MatMergeEntries_Internal() 6487 …PetscInt n2 = nroots, *i2, *j2; /* Buffers for received COOs from other ranks, along with a per… in MatSetPreallocationCOO_MPIAIJ() local 6489 PetscCall(PetscMalloc3(n2, &i2, n2, &j2, n2, &perm2)); in MatSetPreallocationCOO_MPIAIJ() 6496 …eWithMemTypeBegin(sf2, MPIU_INT, PETSC_MEMTYPE_HOST, j1prem, PETSC_MEMTYPE_HOST, j2, MPI_REPLACE)); in MatSetPreallocationCOO_MPIAIJ() 6497 PetscCall(PetscSFReduceEnd(sf2, MPIU_INT, j1prem, j2, MPI_REPLACE)); in MatSetPreallocationCOO_MPIAIJ() 6504 PetscCall(PetscSortIntWithIntCountArrayPair(n2, i2, j2, perm2)); in MatSetPreallocationCOO_MPIAIJ() [all …]
|