Home
last modified time | relevance | path

Searched refs:nd (Results 1 – 25 of 174) sorted by relevance

1234567

/petsc/src/mat/tests/
H A Dex42.c12 PetscInt nd = 2, ov = 1, i, j, lsize, m, n, *idx, bs; in main() local
28 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nd", &nd, NULL)); in main()
56 PetscCall(PetscMalloc1(nd, &is1)); in main()
57 PetscCall(PetscMalloc1(nd, &is2)); in main()
62 for (i = 0; i < nd; i++) { in main()
87 PetscCall(MatIncreaseOverlap(A, nd, is1, ov)); in main()
88 PetscCall(MatIncreaseOverlap(B, nd, is2, ov)); in main()
90 for (i = 0; i < nd; ++i) { in main()
96 PetscCall(MatCreateSubMatrices(A, nd, is1, is1, MAT_INITIAL_MATRIX, &submatA)); in main()
97 PetscCall(MatCreateSubMatrices(B, nd, is2, is2, MAT_INITIAL_MATRIX, &submatB)); in main()
[all …]
H A Dex51.c8 PetscInt bs = 1, m = 43, ov = 1, i, j, k, *rows, *cols, M, nd = 5, *idx, mm, nn, lsize; in main() local
21 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nd", &nd, NULL)); in main()
77 PetscCall(PetscMalloc1(nd, &is1)); in main()
78 PetscCall(PetscMalloc1(nd, &is2)); in main()
80 for (i = 0; i < nd; i++) { in main()
91 PetscCall(MatIncreaseOverlap(A, nd, is1, ov)); in main()
92 PetscCall(MatIncreaseOverlap(B, nd, is2, ov)); in main()
94 for (i = 0; i < nd; ++i) { in main()
99 for (i = 0; i < nd; ++i) { in main()
104 PetscCall(MatCreateSubMatrices(A, nd, is1, is1, MAT_INITIAL_MATRIX, &submatA)); in main()
[all …]
H A Dex91.c8 PetscInt bs = 1, m = 43, ov = 1, i, j, k, *rows, *cols, M, nd = 5, *idx, mm, nn; in main() local
22 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nd", &nd, NULL)); in main()
83 for (i = 0; i < nd; i++) { in main()
103 PetscCall(PetscMalloc1(nd, &is1)); in main()
104 PetscCall(PetscMalloc1(nd, &is2)); in main()
106 for (i = 0; i < nd; i++) { in main()
123 PetscCall(MatIncreaseOverlap(A, nd, is1, ov)); in main()
124 PetscCall(MatIncreaseOverlap(sA, nd, is2, ov)); in main()
126 for (i = 0; i < nd; ++i) { in main()
131 for (i = 0; i < nd; ++i) { in main()
[all …]
H A Dex54.c8 …PetscInt bs = 1, m = 11, ov = 1, i, j, k, *rows, *cols, nd = 5, *idx, rstart, rend, sz, mm, nn… in main() local
25 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nd", &nd, NULL)); in main()
98 PetscCall(PetscMalloc1(nd, &is1)); in main()
99 PetscCall(PetscMalloc1(nd, &is2)); in main()
104 for (i = 0; i < nd; i++) { in main()
115 PetscCall(MatIncreaseOverlap(A, nd, is1, ov)); in main()
116 PetscCall(MatIncreaseOverlap(B, nd, is2, ov)); in main()
118 for (i = 0; i < nd; ++i) { in main()
121 …" PetscInt_FMT " ov=%" PetscInt_FMT " nd=%" PetscInt_FMT " np=%d\n", i, flg, bs, m, ov, nd, size)); in main()
124 for (i = 0; i < nd; ++i) { in main()
[all …]
H A Dex41.c11 PetscInt nd = 2, ov = 1, i, j, m, n, *idx, lsize; in main() local
25 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nd", &nd, NULL)); in main()
48 PetscCall(PetscMalloc1(nd, &is1)); in main()
49 PetscCall(PetscMalloc1(nd, &is2)); in main()
53 for (i = 0; i < nd; i++) { in main()
65 PetscCall(MatIncreaseOverlap(A, nd, is1, ov)); in main()
66 PetscCall(MatIncreaseOverlap(B, nd, is2, ov)); in main()
69 for (i = 0; i < nd; ++i) { in main()
78 for (i = 0; i < nd; ++i) { in main()
H A Dex92.c11 …PetscInt bs = 1, mbs = 10, ov = 1, i, j, k, *rows, *cols, nd = 2, *idx, rstart, rend, sz, M, … in main() local
27 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nd", &nd, NULL)); in main()
108 PetscCall(PetscMalloc1(nd, &is1)); in main()
109 PetscCall(PetscMalloc1(nd, &is2)); in main()
111 for (i = 0; i < nd; i++) { in main()
147 PetscCall(MatIncreaseOverlap(sA, nd, is2, ov)); in main()
151 PetscCall(MatIncreaseOverlap(A, nd, is1, ov)); in main()
161 for (i = 0; i < nd; ++i) { in main()
176 for (i = 0; i < nd; ++i) PetscCall(ISSort(is1[i])); in main()
178 PetscCall(MatCreateSubMatrices(A, nd, is1, is1, MAT_INITIAL_MATRIX, &submatA)); in main()
[all …]
H A Dex40.c37 PetscInt nd = 2, ov = 1, ndpar, i, start, m, n, end, lsize; in main() local
52 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nd", &nd, NULL)); in main()
80 nd = (PetscInt)size; in main()
92 PetscCall(PetscMalloc1(nd, &is1)); in main()
93 PetscCall(PetscMalloc1(nd, &is2)); in main()
98 for (i = 0; i < nd; i++) { in main()
111 ndpar = nd; in main()
115 PetscCall(MatIncreaseOverlap(B, nd, is2, ov)); in main()
125 for (i = 0; i < nd; ++i) { in main()
135 for (i = 0; i < nd; ++i) { in main()
H A Dex110.c9 PetscInt *di, *dj, *oi, *oj, nd; in main() local
43 …PetscCall(MatGetRowIJ(AA, 0, PETSC_FALSE, PETSC_FALSE, &nd, (const PetscInt **)&di, (const PetscIn… in main()
45 …PetscCall(MatGetRowIJ(AB, 0, PETSC_FALSE, PETSC_FALSE, &nd, (const PetscInt **)&oi, (const PetscIn… in main()
57 …PetscCall(MatRestoreRowIJ(AA, 0, PETSC_FALSE, PETSC_FALSE, &nd, (const PetscInt **)&di, (const Pet… in main()
59 …PetscCall(MatRestoreRowIJ(AB, 0, PETSC_FALSE, PETSC_FALSE, &nd, (const PetscInt **)&oi, (const Pet… in main()
H A Dex302k.kokkos.cxx16 PetscInt *di, *dj, *oi, *oj, nd; in main() local
63 …PetscCall(MatGetRowIJ(AA, 0, PETSC_FALSE, PETSC_FALSE, &nd, (const PetscInt **)&di, (const PetscIn… in main()
65 …PetscCall(MatGetRowIJ(AB, 0, PETSC_FALSE, PETSC_FALSE, &nd, (const PetscInt **)&oi, (const PetscIn… in main()
143 …PetscCall(MatRestoreRowIJ(AA, 0, PETSC_FALSE, PETSC_FALSE, &nd, (const PetscInt **)&di, (const Pet… in main()
145 …PetscCall(MatRestoreRowIJ(AB, 0, PETSC_FALSE, PETSC_FALSE, &nd, (const PetscInt **)&oi, (const Pet… in main()
H A Dex303.c11 PetscInt *bi, *bj, nd; in main() local
55 …PetscCall(MatGetRowIJ(B, 0, PETSC_FALSE, PETSC_FALSE, &nd, (const PetscInt **)&bi, (const PetscInt… in main()
67 …PetscCall(MatRestoreRowIJ(B, 0, PETSC_FALSE, PETSC_FALSE, &nd, (const PetscInt **)&bi, (const Pets… in main()
/petsc/src/dm/impls/plex/
H A Dplexfluent.c11 int nd; /* Either ND or element-type */ member
138 snum = sscanf(buffer, "%d", &s->nd); in DMPlexCreateFluent_ReadSection()
145 snum = sscanf(buffer, "(%x %x %x %d %d)", &s->zoneID, &s->first, &s->last, &s->type, &s->nd); in DMPlexCreateFluent_ReadSection()
150 PetscCall(PetscMalloc1(s->nd * numCoords, (PetscScalar **)&s->data)); in DMPlexCreateFluent_ReadSection()
151 …PetscCall(DMPlexCreateFluent_ReadValues(viewer, s->data, s->nd * numCoords, PETSC_SCALAR, s->index… in DMPlexCreateFluent_ReadSection()
165 snum = sscanf(buffer, "(%x %x %x %d)", &s->zoneID, &s->first, &s->last, &s->nd); in DMPlexCreateFluent_ReadSection()
168 snum = sscanf(buffer, "(%x %x %x %d %d)", &s->zoneID, &s->first, &s->last, &s->type, &s->nd); in DMPlexCreateFluent_ReadSection()
170 if (s->nd == 0) { in DMPlexCreateFluent_ReadSection()
190 snum = sscanf(buffer, "(%x %x %x %d)", &s->zoneID, &s->first, &s->last, &s->nd); in DMPlexCreateFluent_ReadSection()
195 snum = sscanf(buffer, "(%x %x %x %d %d)", &s->zoneID, &s->first, &s->last, &s->type, &s->nd); in DMPlexCreateFluent_ReadSection()
[all …]
H A Dplexpreallocate.c119 PetscInt qAdj, qAdjDof, qAdjCDof, qAdjOff, nd, numAdjQ = PETSC_DETERMINE; in DMPlexComputeAnchorAdjacencies() local
133 …for (nd = 0; nd < qAdjDof - qAdjCDof; ++nd) adj[aOff++] = (qAdjOff < 0 ? -(qAdjOff + 1) : qAdjOff)… in DMPlexComputeAnchorAdjacencies()
448 PetscInt ndof, ncdof, ngoff, nd; in DMPlexCreateAdjacencySection_Static() local
454 for (nd = 0; nd < ndof - ncdof; ++nd) { in DMPlexCreateAdjacencySection_Static()
455 adj[aoff + i] = (ngoff < 0 ? -(ngoff + 1) : ngoff) + nd; in DMPlexCreateAdjacencySection_Static()
523 PetscInt ndof, ncdof, ngoff, nd; in DMPlexCreateAdjacencySection_Static() local
529 for (nd = 0; nd < ndof - ncdof; ++nd) { in DMPlexCreateAdjacencySection_Static()
530 rootAdj[aoff + i] = ngoff < 0 ? -(ngoff + 1) + nd : ngoff + nd; in DMPlexCreateAdjacencySection_Static()
663 PetscInt ndof, ncdof, ngoff, nd, count; in DMPlexCreateAdjacencySection_Static() local
674 …for (nd = 0; nd < ndof - ncdof; ++nd, ++i) cols[aoff + i] = ngoff < 0 ? -(ngoff + 1) + nd : ngoff … in DMPlexCreateAdjacencySection_Static()
/petsc/src/mat/impls/aij/mpi/crl/
H A Dmcrl.c41 PetscInt nd = a->A->cmap->n; /* number of columns in diagonal portion */ in MatMPIAIJCRL_create_aijcrl() local
64 icols[j * m + i] = nd + *bj++; in MatMPIAIJCRL_create_aijcrl()
74 PetscCall(PetscMalloc1(a->B->cmap->n + nd, &array)); in MatMPIAIJCRL_create_aijcrl()
77 …PetscCall(VecCreateMPIWithArray(PetscObjectComm((PetscObject)A), 1, nd, PETSC_DECIDE, array, &aijc… in MatMPIAIJCRL_create_aijcrl()
79 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, a->B->cmap->n, array + nd, &aijcrl->fwork)); in MatMPIAIJCRL_create_aijcrl()
/petsc/src/ksp/pc/impls/tfs/
H A Dtfs.c13 PetscInt nd; member
70 PetscCall(VecPlaceArray(tfs->xo, xin + tfs->nd)); in PCTFSLocalMult_TFS()
102 tfs->nd = a->A->cmap->n; in PCSetUp_TFS()
152 tfs->nd = 0; in PCCreate_TFS()
/petsc/src/sys/tests/output/
H A Dex7_1.out8 2nd test
H A Dex35_1.out14 2nd test
/petsc/src/mat/graphops/color/impls/greedy/
H A Dgreedy.c19 …PetscInt i, j, k, s, e, n, no, nd, nd_global, n_global, idx, ncols, maxcolors, masksize, cc… in GreedyColoringLocalDistanceOne_Private() local
88 nd = n; in GreedyColoringLocalDistanceOne_Private()
152 nd--; in GreedyColoringLocalDistanceOne_Private()
158 …PetscCallMPI(MPIU_Allreduce(&nd, &nd_global, 1, MPIU_INT, MPI_SUM, PetscObjectComm((PetscObject)mc… in GreedyColoringLocalDistanceOne_Private()
173 …PetscInt i, j, k, l, s, e, n, nd, nd_global, n_global, idx, ncols, maxcolors, mcol, mcol_g… in GreedyColoringLocalDistanceTwo_Private() local
270 nd = n; in GreedyColoringLocalDistanceTwo_Private()
468 nd--; in GreedyColoringLocalDistanceTwo_Private()
472 …PetscCallMPI(MPIU_Allreduce(&nd, &nd_global, 1, MPIU_INT, MPI_SUM, PetscObjectComm((PetscObject)mc… in GreedyColoringLocalDistanceTwo_Private()
/petsc/src/snes/tutorials/output/
H A Dex19_cgne.out15 matrix ordering: nd
44 matrix ordering: nd
H A Dex12_p4est_full_q2_nonconformal_parallel_bddcfas.out100 matrix ordering: nd
127 matrix ordering: nd
163 matrix ordering: nd
275 matrix ordering: nd
302 matrix ordering: nd
338 matrix ordering: nd
451 matrix ordering: nd
478 matrix ordering: nd
514 matrix ordering: nd
H A Dex12_p4est_full_q2_nonconformal_parallel_bddcfas_alt.out100 matrix ordering: nd
127 matrix ordering: nd
163 matrix ordering: nd
275 matrix ordering: nd
302 matrix ordering: nd
338 matrix ordering: nd
451 matrix ordering: nd
478 matrix ordering: nd
514 matrix ordering: nd
H A Dex19_8.out47 matrix ordering: nd
74 matrix ordering: nd
/petsc/src/ksp/ksp/tutorials/output/
H A Dex83f_1.out15 matrix ordering: nd
45 matrix ordering: nd
H A Dex71_bddc_elast_4lev.out69 matrix ordering: nd
96 matrix ordering: nd
182 matrix ordering: nd
209 matrix ordering: nd
301 matrix ordering: nd
328 matrix ordering: nd
370 matrix ordering: nd
H A Dex71_bddc_elast_3lev_hpddm_baij.out68 matrix ordering: nd
93 matrix ordering: nd
157 matrix ordering: nd
192 matrix ordering: nd
/petsc/src/ksp/ksp/tutorials/
H A Dex73.c773 PetscInt d, k, nd, nref; in test_hierarchy() local
778 PetscCall(HierarchyCreate(&nd, &nref, &comms, &dms)); in test_hierarchy()
781 for (d = 0; d < nd; d++) { in test_hierarchy()
798 for (k = 0; k < nd * nref; k++) { in test_hierarchy()
804 for (k = 0; k < nd; k++) { in test_hierarchy()
857 PetscInt k, d, nd, nref; in test_mg() local
862 PetscCall(HierarchyCreate(&nd, &nref, &comms, &dms)); in test_mg()
863 dmF = dms[nd * nref - 1]; in test_mg()
882 for (d = 0; d < nd; d++) { in test_mg()
898 for (k = 0; k < nd * nref; k++) { in test_mg()
[all …]

1234567