Lines Matching refs:numComp
108 PetscInt numComp = 0; in PetscSectionCopy_Internal() local
112 PetscCall(PetscSectionGetFieldComponents(section, f, &numComp)); in PetscSectionCopy_Internal()
113 PetscCall(PetscSectionSetFieldComponents(newSection, f, numComp)); in PetscSectionCopy_Internal()
114 for (c = 0; c < numComp; ++c) { in PetscSectionCopy_Internal()
552 PetscErrorCode PetscSectionGetFieldComponents(PetscSection s, PetscInt field, PetscInt *numComp) in PetscSectionGetFieldComponents() argument
556 PetscAssertPointer(numComp, 3); in PetscSectionGetFieldComponents()
558 *numComp = s->numFieldComponents[field]; in PetscSectionGetFieldComponents()
588 PetscErrorCode PetscSectionSetFieldComponents(PetscSection s, PetscInt field, PetscInt numComp) in PetscSectionSetFieldComponents() argument
600 s->numFieldComponents[field] = numComp; in PetscSectionSetFieldComponents()
601 if (numComp) { in PetscSectionSetFieldComponents()
602 PetscCall(PetscMalloc1(numComp, &s->compNames[field])); in PetscSectionSetFieldComponents()
603 for (c = 0; c < numComp; ++c) { in PetscSectionSetFieldComponents()
2042 PetscInt numComp = 0; in PetscSectionCreateSubsection() local
2047 PetscCall(PetscSectionGetFieldComponents(s, fields[f], &numComp)); in PetscSectionCreateSubsection()
2048 PetscCall(PetscSectionSetFieldComponents(*subs, f, numComp)); in PetscSectionCreateSubsection()
2219 PetscInt numComp = 0; in PetscSectionCreateSupersection() local
2223 PetscCall(PetscSectionGetFieldComponents(s[i], fi, &numComp)); in PetscSectionCreateSupersection()
2224 PetscCall(PetscSectionSetFieldComponents(*supers, f, numComp)); in PetscSectionCreateSupersection()
2309 PetscInt numComp = 0; in PetscSectionCreateSubplexSection_Private() local
2313 PetscCall(PetscSectionGetFieldComponents(s, f, &numComp)); in PetscSectionCreateSubplexSection_Private()
2314 PetscCall(PetscSectionSetFieldComponents(*subs, f, numComp)); in PetscSectionCreateSubplexSection_Private()
3105 PetscInt numComp; in PetscSectionPermute() local
3109 PetscCall(PetscSectionGetFieldComponents(s, f, &numComp)); in PetscSectionPermute()
3110 PetscCall(PetscSectionSetFieldComponents(sNew, f, numComp)); in PetscSectionPermute()