How to get quadrature points and their weights?

Hi,
Looking at the repo, this seems to be what you are looking for:

from ffc.fiatinterface import create_quadrature as cquad
shape = "triangle"
deg = 2
scheme = "default"

points, weights = cquad(shape, deg, scheme)

3 Likes