Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move warning to quadrature creation #385

Merged
merged 1 commit into from
Aug 20, 2021
Merged

Conversation

IgorBaratta
Copy link
Member

Currently we issue this warning even if the number of quadrature points p < 100.

Example:

element = FiniteElement("N1curl", tetrahedron, 4)
mesh = Mesh(VectorElement("Lagrange", tetrahedron, 1))
V = FunctionSpace(mesh, element)
u = TrialFunction(V)
v = TestFunction(V)
a = inner(curl(u), curl(v))*dx + inner(u, v)*dx

Warning:

Number of integration points per cell is: 125. Consider using 'quadrature_degree' to reduce number.

Actual number of quadrature points is 45 (new quadrature rules added to basix in FEniCS/basix#178).

@IgorBaratta IgorBaratta merged commit 1447715 into main Aug 20, 2021
@IgorBaratta IgorBaratta deleted the igor/quadrature_warning branch August 20, 2021 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants