[petsc-users] List of points with dof>0 in a PetscSection

Blaise Bourdin bourdin at mcmaster.ca
Fri Jun 10 15:06:22 CDT 2022


Given a PetscSection, is there an easy way to get a list of point at which the number of dof is >0?
For instance, when projecting over a FE space, I’d rather do a loop over such points than do a loop over all points in a DM, get the number of dof, and test if it is >0.


Professor, Department of Mathematics & Statistics
Hamilton Hall room 409A, McMaster University
1280 Main Street West, Hamilton, Ontario L8S 4K1, Canada 
https://www.math.mcmaster.ca/bourdin | +1 (905) 525 9140 ext. 27243

More information about the petsc-users mailing list