FEniCS / ufl

UFL - Unified Form Language
https://fenicsproject.org
GNU Lesser General Public License v3.0
97 stars 64 forks source link

fix str #162

Closed ksagiyam closed 1 year ago

ksagiyam commented 1 year ago

This PR fixes str.

from ufl import *

elem = FiniteElement("Q", quadrilateral, 1)
print(elem)

currently prints:

<None1 on a quadrilateral>

instead of:

<Q1 on a quadrilateral>
ksagiyam commented 1 year ago

Sure. Added a test.