Get degree of Function


236
views
1
10 months ago by
Dear all

mesh = UnitSquareMesh(10,10)
V = FunctionSpace(mesh,'CG',1)
u = Function(V)​


How do I get the degree of the FunctionSpace from "u" ?
Community: FEniCS Project

2 Answers


3
10 months ago by
u.ufl_function_space().ufl_element().degree()
1
10 months ago by
V.ufl_element().degree()
​
Please login to add an answer/comment or follow this question.

Similar posts:
Search »