Lines Matching refs:subs
2027 …cSectionCreateSubsection(PetscSection s, PetscInt len, const PetscInt fields[], PetscSection *subs) in PetscSectionCreateSubsection() argument
2035 PetscAssertPointer(subs, 4); in PetscSectionCreateSubsection()
2038 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)s), subs)); in PetscSectionCreateSubsection()
2039 PetscCall(PetscSectionSetNumFields(*subs, len)); in PetscSectionCreateSubsection()
2046 PetscCall(PetscSectionSetFieldName(*subs, f, name)); in PetscSectionCreateSubsection()
2048 PetscCall(PetscSectionSetFieldComponents(*subs, f, numComp)); in PetscSectionCreateSubsection()
2051 PetscCall(PetscSectionSetComponentName(*subs, f, c, name)); in PetscSectionCreateSubsection()
2054 PetscCall(PetscSectionSetFieldSym(*subs, f, sym)); in PetscSectionCreateSubsection()
2057 PetscCall(PetscSectionSetChart(*subs, pStart, pEnd)); in PetscSectionCreateSubsection()
2063 PetscCall(PetscSectionSetFieldDof(*subs, p, f, fdof)); in PetscSectionCreateSubsection()
2065 if (cfdof) PetscCall(PetscSectionSetFieldConstraintDof(*subs, p, f, cfdof)); in PetscSectionCreateSubsection()
2069 PetscCall(PetscSectionSetDof(*subs, p, dof)); in PetscSectionCreateSubsection()
2070 if (cdof) PetscCall(PetscSectionSetConstraintDof(*subs, p, cdof)); in PetscSectionCreateSubsection()
2079 PetscCall(PetscSectionSetBlockStarts(*subs, subbst)); in PetscSectionCreateSubsection()
2081 PetscCall(PetscSectionSetUp(*subs)); in PetscSectionCreateSubsection()
2089 PetscCall(PetscSectionGetConstraintDof(*subs, p, &cdof)); in PetscSectionCreateSubsection()
2098 PetscCall(PetscSectionSetFieldConstraintIndices(*subs, p, f, oldIndices)); in PetscSectionCreateSubsection()
2103 PetscCall(PetscSectionSetConstraintIndices(*subs, p, indices)); in PetscSectionCreateSubsection()
2133 …CreateComponentSubsection(PetscSection s, PetscInt len, const PetscInt comps[], PetscSection *subs) in PetscSectionCreateComponentSubsection() argument
2143 PetscAssertPointer(subs, 4); in PetscSectionCreateComponentSubsection()
2146 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)s), subs)); in PetscSectionCreateComponentSubsection()
2147 PetscCall(PetscSectionSetNumFields(*subs, 1)); in PetscSectionCreateComponentSubsection()
2149 PetscCall(PetscSectionSetFieldName(*subs, 0, name)); in PetscSectionCreateComponentSubsection()
2150 PetscCall(PetscSectionSetFieldComponents(*subs, 0, len)); in PetscSectionCreateComponentSubsection()
2152 PetscCall(PetscSectionSetFieldSym(*subs, 0, sym)); in PetscSectionCreateComponentSubsection()
2155 PetscCall(PetscSectionSetComponentName(*subs, 0, c, name)); in PetscSectionCreateComponentSubsection()
2158 PetscCall(PetscSectionSetChart(*subs, pStart, pEnd)); in PetscSectionCreateComponentSubsection()
2167 PetscCall(PetscSectionSetFieldDof(*subs, p, 0, len)); in PetscSectionCreateComponentSubsection()
2168 PetscCall(PetscSectionSetDof(*subs, p, len)); in PetscSectionCreateComponentSubsection()
2170 PetscCall(PetscSectionSetUp(*subs)); in PetscSectionCreateComponentSubsection()
2294 …SubplexSection_Private(PetscSection s, IS subpointIS, PetscBool renumberPoints, PetscSection *subs) in PetscSectionCreateSubplexSection_Private() argument
2303 PetscAssertPointer(subs, 4); in PetscSectionCreateSubplexSection_Private()
2305 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)s), subs)); in PetscSectionCreateSubplexSection_Private()
2306 if (numFields) PetscCall(PetscSectionSetNumFields(*subs, numFields)); in PetscSectionCreateSubplexSection_Private()
2312 PetscCall(PetscSectionSetFieldName(*subs, f, name)); in PetscSectionCreateSubplexSection_Private()
2314 PetscCall(PetscSectionSetFieldComponents(*subs, f, numComp)); in PetscSectionCreateSubplexSection_Private()
2317 PetscCall(PetscSectionSetComponentName(*subs, f, c, name)); in PetscSectionCreateSubplexSection_Private()
2342 PetscCall(PetscSectionSetChart(*subs, spStart, spEnd)); in PetscSectionCreateSubplexSection_Private()
2352 PetscCall(PetscSectionSetFieldDof(*subs, subp, f, fdof)); in PetscSectionCreateSubplexSection_Private()
2354 if (cfdof) PetscCall(PetscSectionSetFieldConstraintDof(*subs, subp, f, cfdof)); in PetscSectionCreateSubplexSection_Private()
2357 PetscCall(PetscSectionSetDof(*subs, subp, dof)); in PetscSectionCreateSubplexSection_Private()
2359 if (cdof) PetscCall(PetscSectionSetConstraintDof(*subs, subp, cdof)); in PetscSectionCreateSubplexSection_Private()
2361 PetscCall(PetscSectionSetUp(*subs)); in PetscSectionCreateSubplexSection_Private()
2372 PetscCall(PetscSectionSetFieldOffset(*subs, subp, f, foff)); in PetscSectionCreateSubplexSection_Private()
2375 PetscCall(PetscSectionSetOffset(*subs, subp, off)); in PetscSectionCreateSubplexSection_Private()
2381 PetscCall(PetscSectionGetConstraintDof(*subs, subp, &cdof)); in PetscSectionCreateSubplexSection_Private()
2385 PetscCall(PetscSectionSetFieldConstraintIndices(*subs, subp, f, indices)); in PetscSectionCreateSubplexSection_Private()
2388 PetscCall(PetscSectionSetConstraintIndices(*subs, subp, indices)); in PetscSectionCreateSubplexSection_Private()
2420 PetscErrorCode PetscSectionCreateSubmeshSection(PetscSection s, IS subpointIS, PetscSection *subs) in PetscSectionCreateSubmeshSection() argument
2423 PetscCall(PetscSectionCreateSubplexSection_Private(s, subpointIS, PETSC_TRUE, subs)); in PetscSectionCreateSubmeshSection()
2452 …tscErrorCode PetscSectionCreateSubdomainSection(PetscSection s, IS subpointMap, PetscSection *subs) in PetscSectionCreateSubdomainSection() argument
2455 PetscCall(PetscSectionCreateSubplexSection_Private(s, subpointMap, PETSC_FALSE, subs)); in PetscSectionCreateSubdomainSection()
3405 PetscErrorCode PetscSectionGetField(PetscSection s, PetscInt field, PetscSection *subs) in PetscSectionGetField() argument
3409 PetscAssertPointer(subs, 3); in PetscSectionGetField()
3411 *subs = s->field[field]; in PetscSectionGetField()