Home
last modified time | relevance | path

Searched refs:sct (Results 1 – 24 of 24) sorted by relevance

/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DScatter.pyx41 self.obj = <PetscObject*> &self.sct
42 self.sct = NULL
75 CHKERR(VecScatterView(self.sct, vwr))
87 CHKERR(VecScatterDestroy(&self.sct))
120 >>> sct = PETSc.Scatter().create(v1,None,v2,None)
121 >>> sct.scatter(v1,v2) # v2[:] = v1[:]
122 >>> sct.scatter(v2,v1,mode=revmode) # v1[:] = v2[:]
128 >>> sct = PETSc.Scatter().create(v1,is1,v2,None)
129 >>> sct.scatter(v1,v2) # v2[:] = v1[3:0:-2]
130 >>> sct.scatter(v2,v1,mode=revmode) # v1[3:0:-2] = v2[:]
[all …]
H A Dpetscdmshell.pxi462 iscat[0][i] = (<Scatter?>iscatter[i]).sct
465 oscat[0][i] = (<Scatter?>oscatter[i]).sct
468 gscat[0][i] = (<Scatter?>gscatter[i]).sct
H A DDMShell.pyx204 CHKERR(DMShellSetGlobalToLocalVecScatter(self.dm, gtol.sct))
268 CHKERR(DMShellSetLocalToGlobalVecScatter(self.dm, ltog.sct))
334 CHKERR(DMShellSetLocalToLocalVecScatter(self.dm, ltol.sct))
H A DCAPI.pyx162 setref(&retv.sct, arg)
168 retv = ob.sct
H A DDMDA.pyx942 CHKERR(DMDAGetScatter(self.dm, &l2g.sct, &g2l.sct))
H A DMat.pyx1251 CHKERR(MatCreateScatter(ccomm, scatter.sct, &newmat))
/petsc/src/mat/utils/
H A Disltog.c30 VecScatter sct; in MatCreateFromISLocalToGlobalMapping() local
40 if (trans) PetscCall(VecScatterCreate(lv, NULL, v, is, &sct)); in MatCreateFromISLocalToGlobalMapping()
41 else PetscCall(VecScatterCreate(v, is, lv, NULL, &sct)); in MatCreateFromISLocalToGlobalMapping()
42 PetscCall(MatCreateScatter(PetscObjectComm((PetscObject)A), sct, P)); in MatCreateFromISLocalToGlobalMapping()
51 PetscCall(VecScatterDestroy(&sct)); in MatCreateFromISLocalToGlobalMapping()
/petsc/src/dm/impls/plex/transform/impls/refine/tobox/
H A Dplexreftobox.c31 …lexTransformGetSubcellOrientation_ToBox(DMPlexTransform tr, DMPolytopeType sct, PetscInt sp, Petsc… in DMPlexTransformGetSubcellOrientation_ToBox() argument
77 switch (sct) { in DMPlexTransformGetSubcellOrientation_ToBox()
83 … PetscCall(DMPlexTransformGetSubcellOrientation_Regular(tr, sct, sp, so, tct, r, o, rnew, onew)); in DMPlexTransformGetSubcellOrientation_ToBox()
98 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_ToBox()
113 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_ToBox()
133 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_ToBox()
153 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_ToBox()
171 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_ToBox()
189 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_ToBox()
193 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "Unsupported cell type %s", DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_ToBox()
[all …]
/petsc/src/dm/impls/plex/transform/impls/refine/alfeld/
H A Dplexrefalfeld.c31 …exTransformGetSubcellOrientation_Alfeld(DMPlexTransform tr, DMPolytopeType sct, PetscInt sp, Petsc… in DMPlexTransformGetSubcellOrientation_Alfeld() argument
56 if (dim == 2 && sct == DM_POLYTOPE_TRIANGLE) { in DMPlexTransformGetSubcellOrientation_Alfeld()
69 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Alfeld()
71 } else if (dim == 3 && sct == DM_POLYTOPE_TETRAHEDRON) { in DMPlexTransformGetSubcellOrientation_Alfeld()
88 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Alfeld()
91 PetscCall(DMPlexTransformGetSubcellOrientationIdentity(tr, sct, sp, so, tct, r, o, rnew, onew)); in DMPlexTransformGetSubcellOrientation_Alfeld()
/petsc/src/dm/impls/plex/transform/impls/refine/regular/
H A Dplexrefregular.c391 PetscErrorCode DMPlexTransformGetSubcellOrientation_Regular(DMPlexTransform tr, DMPolytopeType sct,… in DMPlexTransformGetSubcellOrientation_Regular() argument
485 switch (sct) { in DMPlexTransformGetSubcellOrientation_Regular()
500 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Regular()
514 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Regular()
530 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Regular()
544 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Regular()
562 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Regular()
582 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Regular()
604 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Regular()
618 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Regular()
[all …]
/petsc/src/binding/petsc4py/test/
H A Dtest_dmshell.py196 sct, ovec = PETSc.Scatter.toAll(vec)
197 self.dm.setGlobalToLocalVecScatter(sct)
204 sct, ovec = PETSc.Scatter.toAll(vec)
205 self.dm.setLocalToGlobalVecScatter(sct)
212 sct, ovec = PETSc.Scatter.toAll(vec)
213 self.dm.setLocalToLocalVecScatter(sct)
/petsc/src/dm/impls/plex/transform/impls/refine/1d/
H A Dplexref1d.c39 …DMPlexTransformGetSubcellOrientation_1D(DMPlexTransform tr, DMPolytopeType sct, PetscInt sp, Petsc… in DMPlexTransformGetSubcellOrientation_1D() argument
49 PetscCall(DMPlexTransformGetSubcellOrientation_Regular(tr, sct, sp, so, tct, r, o, rnew, onew)); in DMPlexTransformGetSubcellOrientation_1D()
52 PetscCall(DMPlexTransformGetSubcellOrientationIdentity(tr, sct, sp, so, tct, r, o, rnew, onew)); in DMPlexTransformGetSubcellOrientation_1D()
/petsc/src/mat/impls/lrc/
H A Dlrc.c275 VecScatter sct; in MatSetUp_LRC() local
277 PetscCall(VecScatterCreateToAll(Na->c, &sct, &c)); in MatSetUp_LRC()
278 PetscCall(VecScatterBegin(sct, Na->c, c, INSERT_VALUES, SCATTER_FORWARD)); in MatSetUp_LRC()
279 PetscCall(VecScatterEnd(sct, Na->c, c, INSERT_VALUES, SCATTER_FORWARD)); in MatSetUp_LRC()
280 PetscCall(VecScatterDestroy(&sct)); in MatSetUp_LRC()
/petsc/src/dm/impls/plex/transform/impls/extrude/
H A Dplextrextrude.c630 …xTransformGetSubcellOrientation_Extrude(DMPlexTransform tr, DMPolytopeType sct, PetscInt sp, Petsc… in DMPlexTransformGetSubcellOrientation_Extrude() argument
648 if (DMPolytopeTypeGetDim(sct) == ex->dimEx - 1) { in DMPlexTransformGetSubcellOrientation_Extrude()
668 switch (sct) { in DMPlexTransformGetSubcellOrientation_Extrude()
679 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Extrude()
691 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Extrude()
702 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Extrude()
706 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "Unsupported cell type %s", DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Extrude()
709 switch (sct) { in DMPlexTransformGetSubcellOrientation_Extrude()
720 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Extrude()
731 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Extrude()
[all …]
H A Dplextrcohesive.c844 …TransformGetSubcellOrientation_Cohesive(DMPlexTransform tr, DMPolytopeType sct, PetscInt sp, Petsc… in DMPlexTransformGetSubcellOrientation_Cohesive() argument
859 switch (sct) { in DMPlexTransformGetSubcellOrientation_Cohesive()
870 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Cohesive()
879 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "Unsupported cell type %s", DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Cohesive()
882 switch (sct) { in DMPlexTransformGetSubcellOrientation_Cohesive()
893 …C_ERR_ARG_WRONG, "Cell type %s is not produced by %s", DMPolytopeTypes[tct], DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Cohesive()
902 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "Unsupported cell type %s", DMPolytopeTypes[sct]); in DMPlexTransformGetSubcellOrientation_Cohesive()
/petsc/src/dm/impls/plex/transform/impls/refine/sbr/
H A Dplexrefsbr.c273 …MPlexTransformGetSubcellOrientation_SBR(DMPlexTransform tr, DMPolytopeType sct, PetscInt sp, Petsc… in DMPlexTransformGetSubcellOrientation_SBR() argument
313 PetscCall(DMPlexTransformGetSubcellOrientation_Regular(tr, sct, sp, so, tct, r, o, rnew, onew)); in DMPlexTransformGetSubcellOrientation_SBR()
316 PetscCall(DMPlexTransformGetSubcellOrientationIdentity(tr, sct, sp, so, tct, r, o, rnew, onew)); in DMPlexTransformGetSubcellOrientation_SBR()
/petsc/src/dm/impls/plex/transform/impls/refine/bl/
H A Dplexrefbl.c405 …DMPlexTransformGetSubcellOrientation_BL(DMPlexTransform tr, DMPolytopeType sct, PetscInt sp, Petsc… in DMPlexTransformGetSubcellOrientation_BL() argument
419 … PetscCall(DMPlexTransformGetSubcellOrientationIdentity(tr, sct, sp, so, tct, r, o, rnew, onew)); in DMPlexTransformGetSubcellOrientation_BL()
423 switch (sct) { in DMPlexTransformGetSubcellOrientation_BL()
456 PetscCall(DMPlexTransformGetSubcellOrientationIdentity(tr, sct, sp, so, tct, r, o, rnew, onew)); in DMPlexTransformGetSubcellOrientation_BL()
/petsc/src/dm/impls/plex/
H A Dplexreorder.c476 DMPolytopeType sct; in DMCreateSectionPermutation_Plex_Cohesive_Old() local
479 PetscCall(DMPlexGetCellType(dm, supp[s], &sct)); in DMCreateSectionPermutation_Plex_Cohesive_Old()
480 switch (sct) { in DMCreateSectionPermutation_Plex_Cohesive_Old()
H A Dplex.c1529 VecScatter sct; in DMPlexView_Ascii() local
1582 PetscCall(VecScatterCreate(cown, acis, acown, NULL, &sct)); in DMPlexView_Ascii()
1583 PetscCall(VecScatterBegin(sct, cown, acown, INSERT_VALUES, SCATTER_FORWARD)); in DMPlexView_Ascii()
1584 PetscCall(VecScatterEnd(sct, cown, acown, INSERT_VALUES, SCATTER_FORWARD)); in DMPlexView_Ascii()
1586 PetscCall(VecScatterDestroy(&sct)); in DMPlexView_Ascii()
/petsc/src/binding/petsc4py/src/petsc4py/
H A DPETSc.pxd215 cdef PetscScatter sct
/petsc/src/dm/impls/plex/transform/interface/
H A Dplextransform.c488 DMPolytopeType sct; in DMPlexTransformCreateOffset_Internal() local
498 PetscCall(DMPlexGetCellType(dm, q, &sct)); in DMPlexTransformCreateOffset_Internal()
499 … PetscCall(DMPlexTransformCellTransform(tr, sct, q, &qrt, &Nct, &rct, &rsize, &cone, &ornt)); in DMPlexTransformCreateOffset_Internal()
1205 PetscErrorCode DMPlexTransformGetSubcellOrientationIdentity(DMPlexTransform tr, DMPolytopeType sct,… in DMPlexTransformGetSubcellOrientationIdentity() argument
1381 PetscErrorCode DMPlexTransformGetSubcellOrientation(DMPlexTransform tr, DMPolytopeType sct, PetscIn… in DMPlexTransformGetSubcellOrientation() argument
1384 PetscUseTypeMethod(tr, getsubcellorientation, sct, sp, so, tct, r, o, rnew, onew); in DMPlexTransformGetSubcellOrientation()
/petsc/src/ksp/pc/impls/bddc/
H A Dbddcprivate.c5875 VecScatter sct = NULL; in MatNullSpacePropagateAny_Private() local
5885 sct = matis->cctx; in MatNullSpacePropagateAny_Private()
5886 PetscCall(PetscObjectReference((PetscObject)sct)); in MatNullSpacePropagateAny_Private()
5898 if (!sct) PetscCall(VecScatterCreate(v, is, v2, NULL, &sct)); in MatNullSpacePropagateAny_Private()
5908 PetscCall(VecScatterBegin(sct, nullvecs[k], nullvecs2[k], INSERT_VALUES, SCATTER_FORWARD)); in MatNullSpacePropagateAny_Private()
5909 PetscCall(VecScatterEnd(sct, nullvecs[k], nullvecs2[k], INSERT_VALUES, SCATTER_FORWARD)); in MatNullSpacePropagateAny_Private()
5929 PetscCall(VecScatterDestroy(&sct)); in MatNullSpacePropagateAny_Private()
/petsc/src/ts/tutorials/
H A Dex30.c2009 static PetscErrorCode MakeScatterAndVec(Vec X, IS is, Vec *Y, VecScatter *sct) in MakeScatterAndVec() argument
2016 PetscCall(VecScatterCreate(X, is, *Y, NULL, sct)); in MakeScatterAndVec()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas348 (premix/les-peters-sct-factor 0.7)
1291 (sootspecies/sct 0.7)
3404 (pdf/sct 0.85)
5274 (species/sct 0.7)
7850 (hvac-species/sct 1.)