Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 67) sorted by relevance

123

/petsc/src/ksp/ksp/guess/impls/pod/
H A Dpod.c28 PetscInt st; /* first eigenvector of correlation matrix to be retained */ member
159 …PetscCallBLAS("BLASgemv", BLASgemv_("T", &bN, &bNen, &one, pod->eigv + pod->st * pod->n, &bN, pod-… in KSPGuessFormGuess_POD()
196 …PetscCallBLAS("BLASgemv", BLASgemv_("N", &bN, &bNen, &one, pod->eigv + pod->st * pod->n, &bN, pod-… in KSPGuessFormGuess_POD()
321 pod->st = -1; in KSPGuessUpdate_POD()
325 if (!pod->eigs[i]) pod->st = i; in KSPGuessUpdate_POD()
328 for (i = pod->n - 1, parten = 0; i > pod->st && toten > 0; i--) { in KSPGuessUpdate_POD()
333 pod->st = pod->n - pod->nen; in KSPGuessUpdate_POD()
336 for (i = pod->st; i < pod->n; i++) { in KSPGuessUpdate_POD()
338 const PetscInt st = pod->n * i; in KSPGuessUpdate_POD() local
341 for (j = 0; j < pod->n; j++) pod->eigv[st + j] *= v; in KSPGuessUpdate_POD()
[all …]
/petsc/src/ksp/pc/impls/telescope/
H A Dtelescope.c132 PetscInt m, M, bs, st, ed; in PCTelescopeSetUp_default() local
171 PetscCall(VecGetOwnershipRange(xred, &st, &ed)); in PCTelescopeSetUp_default()
172 PetscCall(ISCreateStride(comm, ed - st, st, 1, &isin)); in PCTelescopeSetUp_default()
174 PetscCall(VecGetOwnershipRange(x, &st, &ed)); in PCTelescopeSetUp_default()
175 PetscCall(ISCreateStride(comm, 0, st, 1, &isin)); in PCTelescopeSetUp_default()
249 PetscInt st, ed; in PCTelescopeSubNullSpaceCreate_Telescope() local
258 PetscCall(VecGetOwnershipRange(sub_vecs[k], &st, &ed)); in PCTelescopeSubNullSpaceCreate_Telescope()
260 for (i = 0; i < ed - st; i++) LA_sub_vec[i] = x_array[i]; in PCTelescopeSubNullSpaceCreate_Telescope()
571 PetscInt i, st, ed; in PCApply_Telescope() local
592 PetscCall(VecGetOwnershipRange(xred, &st, &ed)); in PCApply_Telescope()
[all …]
H A Dtelescope_coarsedm.c47 PetscInt m, bs, st, ed; in PCTelescopeSetUp_scatters_CoarseDM() local
62 PetscCall(VecGetOwnershipRange(xred, &st, &ed)); in PCTelescopeSetUp_scatters_CoarseDM()
63 PetscCall(ISCreateStride(comm, ed - st, st, 1, &isin)); in PCTelescopeSetUp_scatters_CoarseDM()
66 PetscCall(VecGetOwnershipRange(x, &st, &ed)); in PCTelescopeSetUp_scatters_CoarseDM()
67 PetscCall(ISCreateStride(comm, 0, st, 1, &isin)); in PCTelescopeSetUp_scatters_CoarseDM()
H A Dtelescope_dmda.c632 PetscInt m, bs, st, ed; in PCTelescopeSetUp_dmda_scatters() local
647 PetscCall(VecGetOwnershipRange(xred, &st, &ed)); in PCTelescopeSetUp_dmda_scatters()
648 PetscCall(ISCreateStride(comm, ed - st, st, 1, &isin)); in PCTelescopeSetUp_dmda_scatters()
651 PetscCall(VecGetOwnershipRange(x, &st, &ed)); in PCTelescopeSetUp_dmda_scatters()
652 PetscCall(ISCreateStride(comm, 0, st, 1, &isin)); in PCTelescopeSetUp_dmda_scatters()
804 PetscInt st, ed; in PCTelescopeSubNullSpaceCreate_dmda_Telescope() local
817 PetscCall(VecGetOwnershipRange(sub_vecs[k], &st, &ed)); in PCTelescopeSubNullSpaceCreate_dmda_Telescope()
819 for (i = 0; i < ed - st; i++) LA_sub_vec[i] = x_array[i]; in PCTelescopeSubNullSpaceCreate_dmda_Telescope()
874 PetscInt i, st, ed; in PCApply_Telescope_dmda() local
902 PetscCall(VecGetOwnershipRange(xred, &st, &ed)); in PCApply_Telescope_dmda()
[all …]
/petsc/src/dm/tests/
H A Dex7.c8 … i, start, end, P = 5, N = 6, m = PETSC_DECIDE, n = PETSC_DECIDE, p = PETSC_DECIDE, pt = 0, st = 0; in main() local
30 PetscCall(PetscOptionsGetInt(NULL, NULL, "-stencil_type", &st, NULL)); in main()
32 stencil_type = (DMDAStencilType)st; in main()
H A Dex4.c20 DMDAStencilType st = DMDA_STENCIL_BOX; in main() local
49 if (flg) st = DMDA_STENCIL_STAR; in main()
52 if (flg) st = DMDA_STENCIL_BOX; in main()
73 PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, st, M, N, m, n, w, s, lx, ly, &da)); in main()
H A Dex33.c11 PetscInt stencil_width = 1, pt = 0, st = 0; in main() local
43 PetscCall(PetscOptionsGetInt(NULL, NULL, "-stencil_type", &st, NULL)); in main()
44 stencil_type = (DMDAStencilType)st; in main()
H A Dex23.c9 …CIDE, n = PETSC_DECIDE, p = PETSC_DECIDE, M = 8, dof = 1, stencil_width = 1, P = 5, pt = 0, st = 0; in main() local
37 PetscCall(PetscOptionsGetInt(NULL, NULL, "-stencil_type", &st, NULL)); in main()
38 stencil_type = (DMDAStencilType)st; in main()
H A Dex10k.kokkos.cxx33 DMDAStencilType st = DMDA_STENCIL_STAR; in main() local
49 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, st, M, N, PETSC_DECIDE, PETSC_DECIDE, dof, sw, NU… in main()
122 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, st, M, N, PETSC_DECIDE, PETSC_DECIDE, sizeof(Node… in main()
/petsc/src/mat/tests/
H A Dex195.c73 PetscInt st; in main() local
76 PetscCall(MatGetOwnershipRange(A1, &st, NULL)); in main()
77 PetscCall(ISCreateStride(comm, m, st, 2, &is[0])); in main()
78 PetscCall(ISCreateStride(comm, m, st + 1, 2, &is[1])); in main()
/petsc/src/mat/impls/h2opus/cuda/
H A Dmath2opusutils.cu95 PetscInt st, en; in VecSetDelta() local
98 PetscCall(VecGetOwnershipRange(x, &st, &en)); in VecSetDelta()
105 StandardBasis_Functor delta(ax, i - st); in VecSetDelta()
106 …vice, thrust::counting_iterator<PetscInt>(0), thrust::counting_iterator<PetscInt>(en - st), delta); in VecSetDelta()
112 if (st <= i && i < en) PetscCall(VecSetValue(x, i, 1.0, INSERT_VALUES)); in VecSetDelta()
/petsc/src/dm/impls/da/
H A Dfdda.c265 DMDAStencilType st; in DMCreateColoring_DA_2d_MPIAIJ() local
275 PetscCall(DMDAGetInfo(da, &dim, &m, &n, NULL, &M, &N, NULL, &nc, &s, &bx, &by, NULL, &st)); in DMCreateColoring_DA_2d_MPIAIJ()
282 if (st == DMDA_STENCIL_STAR && s == 1) { in DMCreateColoring_DA_2d_MPIAIJ()
329 DMDAStencilType st; in DMCreateColoring_DA_3d_MPIAIJ() local
338 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, &M, &N, &P, &nc, &s, &bx, &by, &bz, &st)); in DMCreateColoring_DA_3d_MPIAIJ()
830 DMDAStencilType st; in DMCreateMatrix_DA_2d_MPISELL() local
837 PetscCall(DMDAGetInfo(da, &dim, &m, &n, NULL, NULL, NULL, NULL, &nc, &s, &bx, &by, NULL, &st)); in DMCreateMatrix_DA_2d_MPISELL()
863 … if (st == DMDA_STENCIL_BOX || !l || !p) { /* entries on star have either l = 0 or p = 0 */ in DMCreateMatrix_DA_2d_MPISELL()
901 … if (st == DMDA_STENCIL_BOX || !l || !p) { /* entries on star have either l = 0 or p = 0 */ in DMCreateMatrix_DA_2d_MPISELL()
932 DMDAStencilType st; in DMCreateMatrix_DA_3d_MPISELL() local
[all …]
H A Ddaview.c108 …eOp DMBoundaryType *bx, PeOp DMBoundaryType *by, PeOp DMBoundaryType *bz, PeOp DMDAStencilType *st) in DMDAGetInfo() argument
135 if (st) *st = dd->stencil_type; in DMDAGetInfo()
178 info->st = dd->stencil_type; in DMDAGetLocalInfo()
/petsc/src/sys/tests/output/
H A Dex7_1.out1 1st test
H A Dex35_1.out1 1st test
/petsc/src/mat/tests/output/
H A Dex116_2.out4 1st 10 of 36 singular values:
H A Dex116_1.out4 1st 10 of 36 singular values:
/petsc/include/
H A Dpetscdmdatypes.h67 DMDAStencilType st; member
/petsc/src/dm/partitioner/impls/simple/
H A Dpartsimple.c165 PetscInt st, j; in PetscPartitionerPartition_Simple() local
172 for (np = 0, st = 0; np < nparts; ++np) { in PetscPartitionerPartition_Simple()
174 for (j = 0; j < tpwgts[np]; j++) PetscCall(VecSetValue(v, st + j, np, INSERT_VALUES)); in PetscPartitionerPartition_Simple()
176 st += tpwgts[np]; in PetscPartitionerPartition_Simple()
/petsc/src/ksp/ksp/tutorials/
H A Dex73.c282 PetscInt m, bs, st, ed; in PCTelescopeSetUp_dmda_scatters() local
311 PetscCall(VecGetOwnershipRange(xred, &st, &ed)); in PCTelescopeSetUp_dmda_scatters()
312 PetscCall(ISCreateStride(comm, ed - st, st, 1, &isin)); in PCTelescopeSetUp_dmda_scatters()
315 PetscCall(VecGetOwnershipRange(x, &st, &ed)); in PCTelescopeSetUp_dmda_scatters()
316 PetscCall(ISCreateStride(comm, 0, st, 1, &isin)); in PCTelescopeSetUp_dmda_scatters()
438 PetscInt i, st, ed; in DMShellDAFieldScatter_Forward() local
460 PetscCall(VecGetOwnershipRange(xc, &st, &ed)); in DMShellDAFieldScatter_Forward()
463 for (i = 0; i < ed - st; i++) LA_xred[i] = x_array[i]; in DMShellDAFieldScatter_Forward()
476 PetscInt i, st, ed; in DMShellDAFieldScatter_Reverse() local
493 PetscCall(VecGetOwnershipRange(yc, &st, &ed)); in DMShellDAFieldScatter_Reverse()
[all …]
/petsc/src/snes/tutorials/
H A Dex30.c310 PetscScalar st, ct, th, c = param->c, d = param->d; in HorizVelocity() local
316 st = z / r; in HorizVelocity()
319 return ct * (c * th * st + d * (st + th * ct)) + st * (c * (st - th * ct) + d * th * st); in HorizVelocity()
327 PetscScalar st, ct, th, c = param->c, d = param->d; in VertVelocity() local
333 st = z / r; in VertVelocity()
336 return st * (c * th * st + d * (st + th * ct)) - ct * (c * (st - th * ct) + d * th * st); in VertVelocity()
344 PetscScalar x, z, r, st, ct, c = param->c, d = param->d; in Pressure() local
349 st = z / r; in Pressure()
351 return -2.0 * (c * ct - d * st) / r; in Pressure()
/petsc/src/dm/impls/swarm/
H A Ddata_ex.c261 PetscMPIInt st, rt; in _get_tags() local
263 st = (N * r0 + r1 + N * N * counter) % maxtag; in _get_tags()
265 *_st = st; in _get_tags()
333 PetscMPIInt symm_nn = 0, *symm_procs = NULL, r0, n, st, rt, size, *maxtag, iflg; in DMSwarmDataExTopologyFinalize() local
362 _get_tags(d->instance, size, r0, r1, *maxtag, &st, &rt); in DMSwarmDataExTopologyFinalize()
363 d->send_tags[n] = st; in DMSwarmDataExTopologyFinalize()
/petsc/src/ts/tests/
H A Dex21.c141 DMDAStencilType st = DMDA_STENCIL_STAR; in main() local
163 PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bt, bt, st, N, N, n, n, 1, sw, NULL, NULL, &da)); in main()
/petsc/src/dm/impls/plex/transform/impls/extrude/
H A Dplextrextrude.c539 for (PetscInt st = 0; st < starSize * 2; st += 2) { in DMPlexTransformSetUp_Extrude() local
540 const PetscInt face = star[st]; in DMPlexTransformSetUp_Extrude()
831 for (PetscInt st = 0; st < starSize * 2; st += 2) { in DMPlexTransformMapCoordinates_Extrude() local
832 if ((star[st] >= cStart) && (star[st] < cEnd)) { in DMPlexTransformMapCoordinates_Extrude()
835 PetscCall(DMPlexComputeCellGeometryFVM(dm, star[st], NULL, NULL, cnormal)); in DMPlexTransformMapCoordinates_Extrude()
/petsc/src/vec/is/is/impls/general/
H A Dgeneral.c495 PetscInt st = 0; in ISView_General() local
497 if (fmt == PETSC_VIEWER_ASCII_INDEX) st = is->map->rstart; in ISView_General()
499 …CIISynchronizedPrintf(viewer, "[%d] %" PetscInt_FMT " %" PetscInt_FMT "\n", rank, i + st, idx[i])); in ISView_General()
510 PetscInt st = 0; in ISView_General() local
512 if (fmt == PETSC_VIEWER_ASCII_INDEX) st = is->map->rstart; in ISView_General()
514 …tscViewerASCIISynchronizedPrintf(viewer, "%" PetscInt_FMT " %" PetscInt_FMT "\n", i + st, idx[i])); in ISView_General()

123