how to extract the element degree from a FunctionSpace

Asked by Nico Schlömer on 2013-05-07

Given a FunctionSpace, how can I extract the element degree (in Python)?

Question information

Language:
English Edit question
Status:
Solved
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Solved by:
Nico Schlömer
Solved:
2013-05-07
Last query:
2013-05-07
Last reply:
2013-05-07
Johan Hake (johan-hake) said : #1

V.ufl_element().degree()

Johan

On 05/07/2013 02:51 PM, Nico Schlömer wrote:
> New question #228337 on FEniCS Project:
> https://answers.launchpad.net/fenics/+question/228337
>
> Given a FunctionSpace, how can I extract the element degree (in Python)?
>

Nico Schlömer (nschloe) said : #2

Perfect, thanks.