Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/
H A Dplexreorder.c198 …rdinates_Private(IS perm, PetscSection cs, Vec coordinates, PetscSection *csNew, Vec *coordinatesN… in DMPlexRemapCoordinates_Private() argument
206 PetscCall(PetscSectionPermute(cs, perm, csNew)); in DMPlexRemapCoordinates_Private()
212 PetscCall(PetscSectionGetChart(*csNew, &pStart, &pEnd)); in DMPlexRemapCoordinates_Private()
217 PetscCall(PetscSectionGetDof(*csNew, p, &dof)); in DMPlexRemapCoordinates_Private()
219 PetscCall(PetscSectionGetOffset(*csNew, pperm[p], &offNew)); in DMPlexRemapCoordinates_Private()
338 PetscSection cs, csNew; in DMPlexPermute() local
343 PetscCall(DMPlexRemapCoordinates_Private(perm, cs, coordinates, &csNew, &coordinatesNew)); in DMPlexPermute()
344 PetscCall(DMSetCoordinateSection(*pdm, PETSC_DETERMINE, csNew)); in DMPlexPermute()
346 PetscCall(PetscSectionDestroy(&csNew)); in DMPlexPermute()
357 PetscCall(DMPlexRemapCoordinates_Private(perm, cs, coordinates, &csNew, &coordinatesNew)); in DMPlexPermute()
[all …]
H A Dplexcreate.c319 PetscSection cs, csNew; in DMPlexCreateCoordinateSpace() local
333 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)cs), &csNew)); in DMPlexCreateCoordinateSpace()
334 PetscCall(PetscSectionSetNumFields(csNew, 1)); in DMPlexCreateCoordinateSpace()
336 PetscCall(PetscSectionSetFieldName(csNew, 0, fieldName)); in DMPlexCreateCoordinateSpace()
338 PetscCall(PetscSectionSetFieldComponents(csNew, 0, cdim)); in DMPlexCreateCoordinateSpace()
341 PetscCall(PetscSectionSetComponentName(csNew, 0, c, compName)); in DMPlexCreateCoordinateSpace()
344 PetscCall(PetscSectionSetChart(csNew, pStart, pEnd)); in DMPlexCreateCoordinateSpace()
350 PetscCall(PetscSectionSetDof(csNew, p, cdim)); in DMPlexCreateCoordinateSpace()
351 PetscCall(PetscSectionSetFieldDof(csNew, p, 0, cdim)); in DMPlexCreateCoordinateSpace()
354 PetscCall(PetscSectionSetUp(csNew)); in DMPlexCreateCoordinateSpace()
[all …]