| /petsc/src/dm/field/impls/ds/ |
| H A D | dmfieldds.c | 11 PetscObject *disc; /* Discretizations of this field at each height */ member 25 for (i = 0; i < dsfield->height; i++) PetscCall(PetscObjectDereference(dsfield->disc[i])); in DMFieldDestroy_DS() 26 PetscCall(PetscFree(dsfield->disc)); in DMFieldDestroy_DS() 38 PetscObject disc; in DMFieldView_DS() local 43 disc = dsfield->disc[0]; in DMFieldView_DS() 47 PetscCall(PetscObjectView(disc, viewer)); in DMFieldView_DS() 57 …e DMFieldDSGetHeightDisc(DMField field, PetscInt height, PetscObject discList[], PetscObject *disc) in DMFieldDSGetHeightDisc() argument 67 *disc = discList[height]; in DMFieldDSGetHeightDisc() 149 PetscObject disc; in DMFieldEvaluateFE_DS() local 164 PetscCall(DMFieldDSGetHeightDisc(field, dsfield->height - 1 - dim, dsfield->disc, &disc)); in DMFieldEvaluateFE_DS() [all …]
|
| /petsc/src/dm/interface/ |
| H A D | dmi.c | 266 PetscObject disc, space, pmat; in DMSelectFields_Private() local 268 PetscCall(DMGetField(*subdm, field, NULL, &disc)); in DMSelectFields_Private() 269 PetscCall(PetscObjectQuery(disc, "nullspace", &space)); in DMSelectFields_Private() 271 PetscCall(PetscObjectQuery(disc, "nearnullspace", &space)); in DMSelectFields_Private() 273 PetscCall(PetscObjectQuery(disc, "pmat", &pmat)); in DMSelectFields_Private() 296 PetscObject disc; in DMSelectFields_Private() local 298 PetscCall(DMGetField(dm, fields[f], NULL, &disc)); in DMSelectFields_Private() 299 PetscCall(DMSetField(*subdm, f, NULL, disc)); in DMSelectFields_Private() 304 PetscObject disc, space, pmat; in DMSelectFields_Private() local 306 PetscCall(DMGetField(*subdm, 0, NULL, &disc)); in DMSelectFields_Private() [all …]
|
| H A D | dm.c | 4413 PetscObject disc; in DMSetLocalSection() local 4417 PetscCall(DMGetField(dm, f, NULL, &disc)); in DMSetLocalSection() 4418 PetscCall(PetscObjectSetName(disc, name)); in DMSetLocalSection() 4903 static PetscErrorCode DMSetDefaultAdjacency_Private(DM dm, PetscInt f, PetscObject disc) in DMSetDefaultAdjacency_Private() argument 4908 PetscCall(PetscObjectGetClassId(disc, &id)); in DMSetDefaultAdjacency_Private() 4929 tmpr[f].disc = NULL; in DMFieldEnlarge_Static() 4959 PetscCall(PetscObjectDestroy(&dm->fields[f].disc)); in DMClearFields() 5039 PetscErrorCode DMGetField(DM dm, PetscInt f, DMLabel *label, PetscObject *disc) in DMGetField() argument 5043 PetscAssertPointer(disc, 4); in DMGetField() 5047 if (disc) *disc = NULL; in DMGetField() [all …]
|
| H A D | dmcoordinates.c | 1094 PetscErrorCode DMSetCoordinateDisc(DM dm, PetscFE disc, PetscBool localized, PetscBool project) in DMSetCoordinateDisc() argument 1104 if (disc) PetscValidHeaderSpecific(disc, PETSCFE_CLASSID, 2); in DMSetCoordinateDisc() 1133 if (!disc) PetscFunctionReturn(PETSC_SUCCESS); in DMSetCoordinateDisc() 1138 PetscCall(PetscFEGetDualSpace(disc, &ds)); in DMSetCoordinateDisc() 1146 PetscCall(DMSetField(cdmNew, 0, NULL, (PetscObject)disc)); in DMSetCoordinateDisc()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexextrude.c | 56 PetscObject disc; in DMPlexExtrude() local 116 PetscCall(DMGetField(cdm, 0, NULL, &disc)); in DMPlexExtrude() 117 PetscCall(PetscObjectGetClassId(disc, &id)); in DMPlexExtrude() 122 PetscCall(PetscFEGetBasisSpace((PetscFE)disc, &sp)); in DMPlexExtrude()
|
| H A D | plexglvis.c | 100 PetscObject disc; in DMSetUpGLVisViewer_Plex() local 110 PetscCall(PetscDSGetDiscretization(ds, f, &disc)); in DMSetUpGLVisViewer_Plex() 111 if (disc) { in DMSetUpGLVisViewer_Plex() 116 PetscCall(PetscObjectGetClassId(disc, &id)); in DMSetUpGLVisViewer_Plex() 118 PetscFE fem = (PetscFE)disc; in DMSetUpGLVisViewer_Plex() 173 PetscCall(PetscFVGetNumComponents((PetscFV)disc, &Nc)); in DMSetUpGLVisViewer_Plex() 493 PetscFE disc; in DMPlexView_GLVis_ASCII() local 497 PetscCall(DMGetField(cdm, 0, NULL, (PetscObject *)&disc)); in DMPlexView_GLVis_ASCII() 498 PetscCall(PetscObjectGetClassId((PetscObject)disc, &classid)); in DMPlexView_GLVis_ASCII() 507 PetscCall(GLVisCreateFE(disc, name, &hodisc, &perm)); in DMPlexView_GLVis_ASCII()
|
| H A D | plexsection.c | 591 PetscFE fe = (PetscFE)dm->fields[f].disc; in DMCreateLocalSection_Plex() 600 PetscFV fv = (PetscFV)dm->fields[f].disc; in DMCreateLocalSection_Plex()
|
| H A D | plextree.c | 1162 PetscObject disc; in DMPlexComputeAnchorMatrix_Tree_Direct() local 1177 PetscCall(PetscDSGetDiscretization(ds, f, &disc)); in DMPlexComputeAnchorMatrix_Tree_Direct() 1178 PetscCall(PetscObjectGetClassId(disc, &id)); in DMPlexComputeAnchorMatrix_Tree_Direct() 1180 PetscFE fe = (PetscFE)disc; in DMPlexComputeAnchorMatrix_Tree_Direct() 1187 PetscFV fv = (PetscFV)disc; in DMPlexComputeAnchorMatrix_Tree_Direct() 1198 …} else SETERRQ(PetscObjectComm(disc), PETSC_ERR_ARG_UNKNOWN_TYPE, "PetscDS discretization id %d no… in DMPlexComputeAnchorMatrix_Tree_Direct() 2922 PetscObject disc; in DMPlexComputeInjectorReferenceTree() local 2964 PetscCall(PetscDSGetDiscretization(ds, f, &disc)); in DMPlexComputeInjectorReferenceTree() 2965 PetscCall(PetscObjectGetClassId(disc, &classId)); in DMPlexComputeInjectorReferenceTree() 2967 PetscCall(PetscFEGetDualSpace((PetscFE)disc, &dsp)); in DMPlexComputeInjectorReferenceTree() [all …]
|
| H A D | plexgeometry.c | 2627 PetscObject disc; in DMPlexComputeCellGeometryFEM() local 2632 PetscCall(PetscDSGetDiscretization(prob, 0, &disc)); in DMPlexComputeCellGeometryFEM() 2633 PetscCall(PetscObjectGetClassId(disc, &id)); in DMPlexComputeCellGeometryFEM() 2634 if (id == PETSCFE_CLASSID) fe = (PetscFE)disc; in DMPlexComputeCellGeometryFEM() 3876 PetscObject disc; in DMPlexCoordinatesToReference() local 3878 PetscCall(DMGetField(coordDM, 0, NULL, &disc)); in DMPlexCoordinatesToReference() 3879 PetscCall(PetscObjectGetClassId(disc, &id)); in DMPlexCoordinatesToReference() 3880 if (id == PETSCFE_CLASSID) fe = (PetscFE)disc; in DMPlexCoordinatesToReference() 3959 PetscObject disc; in DMPlexReferenceToCoordinates() local 3961 PetscCall(DMGetField(coordDM, 0, NULL, &disc)); in DMPlexReferenceToCoordinates() [all …]
|
| H A D | plex.c | 305 PetscObject disc; in DMPlexVecView1D() local 309 PetscCall(PetscDSGetDiscretization(ds, f, &disc)); in DMPlexVecView1D() 312 PetscCall(PetscObjectGetName(disc, &fname)); in DMPlexVecView1D() 1787 PetscCall(PetscObjectGetName(dm->fields[f].disc, &name)); in DMPlexView_Ascii() 6324 PetscObject disc = prob->disc[field]; in DMPlexGetPointDualSpaceFEM() local 6326 if (disc->classid == PETSCFE_CLASSID) { in DMPlexGetPointDualSpaceFEM() 6329 PetscCall(PetscFEGetDualSpace((PetscFE)disc, &dsp)); in DMPlexGetPointDualSpaceFEM()
|
| H A D | plexfem.c | 4651 PetscObject disc; in DMPlexComputeJacobian_Patch_Internal() local 4653 PetscCall(PetscDSGetDiscretization(prob, fieldI, &disc)); in DMPlexComputeJacobian_Patch_Internal() 4654 PetscCall(PetscObjectGetClassId(disc, &id)); in DMPlexComputeJacobian_Patch_Internal()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DS.pyx | 184 def getFieldIndex(self, Object disc) -> int: argument 191 disc 200 CHKERR(PetscDSGetFieldIndex(self.ds, disc.obj[0], &field)) 261 def setDiscretisation(self, f: int, disc: Object) -> None: 270 disc 279 cdef FE fe = disc
|
| H A D | DM.pyx | 1310 def setCoordinateDisc(self, FE disc, localized: bool, project: bool) -> Self: argument 1317 disc 1331 CHKERR(DMSetCoordinateDisc(self.dm, disc.fe, clocalized, pr))
|
| /petsc/src/dm/dt/interface/ |
| H A D | dtds.c | 556 tmpd[f] = prob->disc[f]; in PetscDSEnlarge_Static() 566 PetscCall(PetscFree4(prob->disc, prob->implicit, prob->cohesive, prob->jetDegree)); in PetscDSEnlarge_Static() 569 prob->disc = tmpd; in PetscDSEnlarge_Static() 645 for (f = 0; f < (*ds)->Nf; ++f) PetscCall(PetscObjectDereference((*ds)->disc[f])); in PetscDSDestroy() 646 PetscCall(PetscFree4((*ds)->disc, (*ds)->implicit, (*ds)->cohesive, (*ds)->jetDegree)); in PetscDSDestroy() 1025 PetscErrorCode PetscDSGetDiscretization(PetscDS prob, PetscInt f, PetscObject *disc) in PetscDSGetDiscretization() argument 1029 PetscAssertPointer(disc, 3); in PetscDSGetDiscretization() 1031 *disc = prob->disc[f]; in PetscDSGetDiscretization() 1049 PetscErrorCode PetscDSSetDiscretization(PetscDS prob, PetscInt f, PetscObject disc) in PetscDSSetDiscretization() argument 1053 if (disc) PetscAssertPointer(disc, 3); in PetscDSSetDiscretization() [all …]
|
| /petsc/src/ts/utils/ |
| H A D | tsconvest.c | 121 PetscObject disc; in PetscConvEstGetConvRateTS_Spatial_Private() local 177 PetscCall(DMGetField(dm[r], 0, NULL, &disc)); in PetscConvEstGetConvRateTS_Spatial_Private() 178 PetscCall(PetscObjectGetName(disc, &uname)); in PetscConvEstGetConvRateTS_Spatial_Private()
|
| /petsc/include/petsc/private/ |
| H A D | petscdsimpl.h | 96 …PetscObject *disc; /* The discretization for each solution field (PetscFE, PetscFV, etc.… member
|
| H A D | dmimpl.h | 189 PetscObject disc; /* Field discretization, or a PetscContainer with the field name */ member
|
| /petsc/src/snes/utils/ |
| H A D | convest.c | 337 PetscObject disc; in PetscConvEstGetConvRateSNES_Private() local 387 PetscCall(DMGetField(dm[r], 0, NULL, &disc)); in PetscConvEstGetConvRateSNES_Private() 388 PetscCall(PetscObjectGetName(disc, &uname)); in PetscConvEstGetConvRateSNES_Private()
|
| /petsc/src/dm/impls/composite/ |
| H A D | pack.c | 1044 PetscObject disc; in DMCompositeGetGlobalISs() local 1049 PetscCall(PetscDSGetDiscretization(prob, cnt, &disc)); in DMCompositeGetGlobalISs() 1050 PetscCall(PetscObjectQuery(disc, "nullspace", (PetscObject *)&space)); in DMCompositeGetGlobalISs() 1052 PetscCall(PetscObjectQuery(disc, "nearnullspace", (PetscObject *)&space)); in DMCompositeGetGlobalISs() 1054 PetscCall(PetscObjectQuery(disc, "pmat", (PetscObject *)&pmat)); in DMCompositeGetGlobalISs()
|
| /petsc/src/ksp/ksp/interface/ |
| H A D | iterativ.c | 806 PetscObject disc; in KSPMonitorErrorDrawLGCreate() local 810 PetscCall(DMGetField(dm, f, NULL, &disc)); in KSPMonitorErrorDrawLGCreate() 811 PetscCall(PetscObjectGetName(disc, &fname)); in KSPMonitorErrorDrawLGCreate()
|
| /petsc/src/snes/utils/dm/ |
| H A D | dmadapt.c | 1203 PetscObject disc; in DMAdaptorMonitorErrorDrawLGCreate() local 1207 PetscCall(DMGetField(adaptor->idm, f, NULL, &disc)); in DMAdaptorMonitorErrorDrawLGCreate() 1208 PetscCall(PetscObjectGetName(disc, &fname)); in DMAdaptorMonitorErrorDrawLGCreate()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex10.c | 106 …PetscScalar disc = b * b - 4. * a * c, disc_t = 2. * b * b_t - 4. * a_t * c - 4. * a * c_t, num = … in QuadraticSolve() local 107 num_t = -b_t + 0.5 / PetscSqrtScalar(disc) * disc_t, den = 2. * a, den_t = 2. * a_t; in QuadraticSolve()
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 1578 (pb-disc/pseudo-cycle-type (3)) 1616 (pb-disc/pseudo-time-scale-factor (1.)) 1656 (pb-disc/pseudo-implicit-relax (0.5)) 1692 (pb-disc/pseudo-specific? (#t)) 1732 (pb-disc/pseudo-relax (0.75)) 3899 (pb-disc-inhomo/co-inhomo-luo #t) 3900 (pb-disc-inhomo/bu-inhomo-luo #t) 3901 (pb-disc/kv 0.523598776) 3902 (pb-disc/ka 3.14159265) 3903 (pb-disc/bin-size-inp-type 0) [all …]
|
| /petsc/src/dm/dt/fe/interface/ |
| H A D | fe.c | 2432 PetscFE fe = (PetscFE)ds->disc[f]; in PetscFEEvaluateFieldJets_Hybrid_Internal()
|