FEniCS / dolfinx

Next generation FEniCS problem solving environment
https://fenicsproject.org
GNU Lesser General Public License v3.0
796 stars 182 forks source link

Allow `CoordinateElement` to be passed to built-in mesh generators #3272

Open jpdean opened 5 months ago

jpdean commented 5 months ago

Describe new/missing feature

Currently, you cannot pass the coordinate element to the built-in mesh generators e.g. create_box or create_rectangle etc.

This would be helpful when using tensor product elements, for example.

Suggested user interface

No response

jorgensd commented 2 months ago

I guess we need to be very careful with the verification, as we would need to ensure that the coordinate element is a first order lagrange element (so the only thing we could really send in is a tensor-ordering or similar flag to indicate what pre-determined first order element one should use.