Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 15 of 15) sorted by relevance

/petsc/src/dm/impls/product/
H A Dproductutils.c22 PetscErrorCode DMProductGetDM(DM dm, PetscInt slot, DM *subdm) in DMProductGetDM() argument
30 …PetscCheck(slot < dim && slot >= 0, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_OUTOFRANGE, "s… in DMProductGetDM()
31 *subdm = product->dm[slot]; in DMProductGetDM()
54 PetscErrorCode DMProductSetDM(DM dm, PetscInt slot, DM subdm) in DMProductSetDM() argument
62 …PetscCheck(slot < dim && slot >= 0, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_OUTOFRANGE, "s… in DMProductSetDM()
64 PetscCall(DMDestroy(&product->dm[slot])); in DMProductSetDM()
65 product->dm[slot] = subdm; in DMProductSetDM()
83 PetscErrorCode DMProductSetDimensionIndex(DM dm, PetscInt slot, PetscInt idx) in DMProductSetDimensionIndex() argument
91 …PetscCheck(slot < dim && slot >= 0, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_OUTOFRANGE, "s… in DMProductSetDimensionIndex()
92 product->dim[slot] = idx; in DMProductSetDimensionIndex()
[all …]
/petsc/src/dm/impls/da/
H A Dfdda.c824 …PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny, m, n, dim, s, *cols = NULL,… in DMCreateMatrix_DA_2d_MPISELL() local
854 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPISELL()
864 cols[cnt++] = k + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPISELL()
868 rows[k] = k + nc * (slot); in DMCreateMatrix_DA_2d_MPISELL()
892 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPISELL()
902 cols[cnt++] = k + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPISELL()
906 rows[k] = k + nc * (slot); in DMCreateMatrix_DA_2d_MPISELL()
925 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_3d_MPISELL() local
961 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPISELL()
969 cols[cnt++] = l + nc * (slot + ii + gnx * jj + gnx * gny * kk); in DMCreateMatrix_DA_3d_MPISELL()
[all …]
/petsc/src/sys/classes/random/tests/
H A Dex3.c74 PetscInt64 slot; in main() local
78 slot = (PetscInt64)(x * d); in main()
79 bin += mult * slot; in main()
/petsc/src/dm/impls/stag/
H A Dstagda.c334 PetscInt slot; in DMStagTransferCoordinatesToDMDA() local
336 PetscCall(DMStagGetLocationSlot(dmstagCoord, loc, 0, &slot)); in DMStagTransferCoordinatesToDMDA()
338 …for (ex = start[0]; ex < start[0] + n[0] + extraPoint[0]; ++ex) cArrDa[ex][0] = cArrStag[ex][slot]; in DMStagTransferCoordinatesToDMDA()
352 PetscInt slot; in DMStagTransferCoordinatesToDMDA() local
354 PetscCall(DMStagGetLocationSlot(dmstagCoord, loc, 0, &slot)); in DMStagTransferCoordinatesToDMDA()
358 for (d = 0; d < 2; ++d) cArrDa[ey][ex][d] = cArrStag[ey][ex][slot + d]; in DMStagTransferCoordinatesToDMDA()
379 PetscInt slot; in DMStagTransferCoordinatesToDMDA() local
381 PetscCall(DMStagGetLocationSlot(dmstagCoord, loc, 0, &slot)); in DMStagTransferCoordinatesToDMDA()
386 for (d = 0; d < 3; ++d) cArrDa[ez][ey][ex][d] = cArrStag[ez][ey][ex][slot + d]; in DMStagTransferCoordinatesToDMDA()
H A Dstagstencil.c53 PetscInt slot; in DMStagCreateISFromStencils() local
56 slot = nc_max * ((PetscInt)loc_canonical) + stencils[p].c; in DMStagCreateISFromStencils()
57 if (stencil_active[slot] == 0) { in DMStagCreateISFromStencils()
58 stencil_active[slot] = 1; in DMStagCreateISFromStencils()
H A Dstagutils.c189 …cErrorCode DMStagGetProductCoordinateLocationSlot(DM dm, DMStagStencilLocation loc, PetscInt *slot) in DMStagGetProductCoordinateLocationSlot() argument
223 PetscCall(DMStagGetLocationSlot(subDM, loc, component, slot)); in DMStagGetProductCoordinateLocationSlot()
741 PetscErrorCode DMStagGetLocationSlot(DM dm, DMStagStencilLocation loc, PetscInt c, PetscInt *slot) in DMStagGetLocationSlot() argument
753 *slot = stag->locationOffsets[loc] + c; in DMStagGetLocationSlot()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMStag.pyx676 # Location slot related functions
695 cdef PetscInt slot=0
698 CHKERR(DMStagGetLocationSlot(self.dm, sloc, comp, &slot))
699 return toInt(slot)
702 """Return slot for use with local product coordinate arrays.
716 cdef PetscInt slot=0
718 CHKERR(DMStagGetProductCoordinateLocationSlot(self.dm, sloc, &slot))
719 return toInt(slot)
/petsc/src/dm/impls/plex/
H A Dplexpreallocate.c284 PetscInt *slot; in DMPlexCreateAdjacencySection_Static() local
285 PetscCall(PetscSegBufferGetInts(seg_roots, 1, &slot)); in DMPlexCreateAdjacencySection_Static()
286 *slot = remotes[l].index; in DMPlexCreateAdjacencySection_Static()
287 PetscCall(PetscSegBufferGetInts(seg_leaves, 1, &slot)); in DMPlexCreateAdjacencySection_Static()
288 *slot = leaves[l]; in DMPlexCreateAdjacencySection_Static()
H A Dplexsfc.c1123 PetscInt *slot; in DMPeriodicCoordinateSetUp_Internal() local
1125 PetscCall(PetscSegBufferGetInts(seg, 1, &slot)); in DMPeriodicCoordinateSetUp_Internal()
1126 *slot = off / dim + j; in DMPeriodicCoordinateSetUp_Internal()
/petsc/src/mat/impls/dense/seq/
H A Ddense.c95 PetscScalar *slot, *bb, *v; in MatZeroRowsColumns_SeqDense() local
127 slot = v + rows[i] * m; in MatZeroRowsColumns_SeqDense()
128 PetscCall(PetscArrayzero(slot, r)); in MatZeroRowsColumns_SeqDense()
131 slot = v + rows[i]; in MatZeroRowsColumns_SeqDense()
133 *slot = 0.0; in MatZeroRowsColumns_SeqDense()
134 slot += m; in MatZeroRowsColumns_SeqDense()
140 slot = v + (m + 1) * rows[i]; in MatZeroRowsColumns_SeqDense()
141 *slot = diag; in MatZeroRowsColumns_SeqDense()
2042 PetscScalar *slot, *bb, *v; in MatZeroRows_SeqDense() local
2065 slot = v + rows[i]; in MatZeroRows_SeqDense()
[all …]
/petsc/src/mat/impls/aij/seq/
H A Dmatmatmult.c1139 PetscInt *PETSC_RESTRICT slot; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Sorted() local
1140 PetscCall(PetscSegBufferGetInts(segrow, 1, &slot)); in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Sorted()
1141 *slot = bcol; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Sorted()
1150 PetscInt *PETSC_RESTRICT slot; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Sorted() local
1151 PetscCall(PetscSegBufferGetInts(segrow, 1, &slot)); in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Sorted()
1152 *slot = i; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Sorted()
/petsc/doc/manual/
H A Ddmcommonality.md40 by $(i, j, k)$ plus a `slot` that tells us which entity on the cell is being accessed. Since a stag…
H A Ddmstag.md82 …produce the proper final integer index for a given location and component, referred to as a "slot".
H A Dsnes.md930 assembling your Jabobian in the "preconditioner" slot `Pmat`.
/petsc/include/
H A Dpetscsys.h2654 …rorCode PetscSegBufferGetInts(PetscSegBuffer seg, PetscCount count, PetscInt *PETSC_RESTRICT *slot) in PetscSegBufferGetInts() argument
2656 return PetscSegBufferGet(seg, count, (void **)slot); in PetscSegBufferGetInts()