Warn of possibly insufficient quadrature degree for integral on higher-order geometry

Issue #149 new
Jack Hale created an issue

Consider the following integral on a non-affine mesh, e.g. a quadratic triangular mesh:

f = assemble(1*dx(domain=mesh, degree=1))

The degree of the quadrature is insufficient to integrate the area of the mesh. Suggest implementing a soft warning to user that they might be doing something silly.

See discussion here:

https://fenicsproject.slackarchive.io/quadhexmesh/page-2

Comments (5)

  1. Jan Blechta

    This needs to be done after/in compute_form_data. Do you think that it would be good to blow the function even more? Anyway, I will check what looks better/easier then.

  2. Log in to comment