Lines Matching refs:newSection

85 PetscErrorCode PetscSectionCopy(PetscSection section, PetscSection newSection)  in PetscSectionCopy()  argument
89 PetscValidHeaderSpecific(newSection, PETSC_SECTION_CLASSID, 2); in PetscSectionCopy()
90 PetscCall(PetscSectionCopy_Internal(section, newSection, NULL)); in PetscSectionCopy()
94 PetscErrorCode PetscSectionCopy_Internal(PetscSection section, PetscSection newSection, PetscBT con… in PetscSectionCopy_Internal() argument
102 PetscValidHeaderSpecific(newSection, PETSC_SECTION_CLASSID, 2); in PetscSectionCopy_Internal()
103 PetscCall(PetscSectionReset(newSection)); in PetscSectionCopy_Internal()
105 if (numFields) PetscCall(PetscSectionSetNumFields(newSection, numFields)); in PetscSectionCopy_Internal()
111 PetscCall(PetscSectionSetFieldName(newSection, f, fieldName)); in PetscSectionCopy_Internal()
113 PetscCall(PetscSectionSetFieldComponents(newSection, f, numComp)); in PetscSectionCopy_Internal()
116 PetscCall(PetscSectionSetComponentName(newSection, f, c, compName)); in PetscSectionCopy_Internal()
119 PetscCall(PetscSectionSetFieldSym(newSection, f, sym)); in PetscSectionCopy_Internal()
122 PetscCall(PetscSectionSetChart(newSection, pStart, pEnd)); in PetscSectionCopy_Internal()
124 PetscCall(PetscSectionSetPermutation(newSection, perm)); in PetscSectionCopy_Internal()
126 PetscCall(PetscSectionSetSym(newSection, sym)); in PetscSectionCopy_Internal()
132 PetscCall(PetscSectionSetDof(newSection, p, dof)); in PetscSectionCopy_Internal()
135 if (cdof) PetscCall(PetscSectionSetConstraintDof(newSection, p, cdof)); in PetscSectionCopy_Internal()
138 PetscCall(PetscSectionSetFieldDof(newSection, p, f, dof)); in PetscSectionCopy_Internal()
142 if (fcdof) PetscCall(PetscSectionSetFieldConstraintDof(newSection, p, f, fcdof)); in PetscSectionCopy_Internal()
146 PetscCall(PetscSectionSetUp(newSection)); in PetscSectionCopy_Internal()
154 PetscCall(PetscSectionSetOffset(newSection, p, off)); in PetscSectionCopy_Internal()
155 PetscCall(PetscSectionGetConstraintDof(newSection, p, &cdof)); in PetscSectionCopy_Internal()
159 PetscCall(PetscSectionSetConstraintIndices(newSection, p, cInd)); in PetscSectionCopy_Internal()
162 PetscCall(PetscSectionSetFieldOffset(newSection, p, f, off)); in PetscSectionCopy_Internal()
163 PetscCall(PetscSectionGetFieldConstraintDof(newSection, p, f, &fcdof)); in PetscSectionCopy_Internal()
167 PetscCall(PetscSectionSetFieldConstraintIndices(newSection, p, f, cInd)); in PetscSectionCopy_Internal()
193 PetscErrorCode PetscSectionClone(PetscSection section, PetscSection *newSection) in PetscSectionClone() argument
197 PetscAssertPointer(newSection, 2); in PetscSectionClone()
198 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)section), newSection)); in PetscSectionClone()
199 PetscCall(PetscSectionCopy(section, *newSection)); in PetscSectionClone()
4027 …MPI_Datatype dataType, const void *origArray, IS points, PetscSection *newSection, void *newArray[… in PetscSectionExtractDofsFromArray() argument
4038 if (newSection) PetscAssertPointer(newSection, 5); in PetscSectionExtractDofsFromArray()
4061 if (newSection) { in PetscSectionExtractDofsFromArray()
4062 *newSection = s; in PetscSectionExtractDofsFromArray()