Home
last modified time | relevance | path

Searched refs:compNames (Results 1 – 2 of 2) sorted by relevance

/petsc/include/petsc/private/
H A Dsectionimpl.h47 char ***compNames; /* The component names */ member
/petsc/src/vec/is/section/interface/
H A Dsection.c58 (*s)->compNames = NULL; in PetscSectionCreate()
389 PetscCall(PetscMalloc1(s->numFields, &s->compNames)); in PetscSectionSetNumFields()
400 PetscCall(PetscMalloc1(s->numFieldComponents[f], &s->compNames[f])); in PetscSectionSetNumFields()
401 PetscCall(PetscStrallocpy(name, &s->compNames[f][0])); in PetscSectionSetNumFields()
494 *compName = s->compNames[field][comp]; in PetscSectionGetComponentName()
527 PetscCall(PetscFree(s->compNames[field][comp])); in PetscSectionSetComponentName()
528 PetscCall(PetscStrallocpy(compName, &s->compNames[field][comp])); in PetscSectionSetComponentName()
595 if (s->compNames) { in PetscSectionSetFieldComponents()
596 for (c = 0; c < s->numFieldComponents[field]; ++c) PetscCall(PetscFree(s->compNames[field][c])); in PetscSectionSetFieldComponents()
597 PetscCall(PetscFree(s->compNames[field])); in PetscSectionSetFieldComponents()
[all …]