Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/
H A Dplexgeometry.c3400 PetscSection sectionGrad, parentSection; in DMPlexComputeGradientFVM() local
3423 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dm), &sectionGrad)); in DMPlexComputeGradientFVM()
3424 PetscCall(PetscSectionSetChart(sectionGrad, cStart, cEnd)); in DMPlexComputeGradientFVM()
3425 for (c = cStart; c < cEnd; ++c) PetscCall(PetscSectionSetDof(sectionGrad, c, pdim * dim)); in DMPlexComputeGradientFVM()
3426 PetscCall(PetscSectionSetUp(sectionGrad)); in DMPlexComputeGradientFVM()
3427 PetscCall(DMSetLocalSection(*dmGrad, sectionGrad)); in DMPlexComputeGradientFVM()
3428 PetscCall(PetscSectionDestroy(&sectionGrad)); in DMPlexComputeGradientFVM()