Searched refs:sectionGrad (Results 1 – 1 of 1) sorted by relevance
3400 PetscSection sectionGrad, parentSection; in DMPlexComputeGradientFVM() local3423 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dm), §ionGrad)); 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(§ionGrad)); in DMPlexComputeGradientFVM()