---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-7-beb50c5642d2> in <module>()
1 u0 = Function(V)
----> 2 Pih(u0,mesh)
<ipython-input-5-edaad88a255c> in Pih(u0, mesh)
1 def Pih(u0, mesh):
----> 2 V = FunctionSpace(mesh, 'N1curl', r)
3 u = TrialFunction(V)
4 if r == 1:
5 W = FunctionSpace(mesh, 'N1curl', 1)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dolfin/functions/functionspace.py in __init__(self, mesh, family, degree, form_degree, constrained_domain, restriction)
454 cpp.dolfin_error("functionspace.py",
455 "create function space",
--> 456 "Illegal argument for degree, not an integer: " + str(degree))
457
458 # Get Mesh or Restriction from Domain or Domain from Mesh or
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dolfin/cpp/common.py in dolfin_error(*args)
2357
2358 """
-> 2359 return _common.dolfin_error(*args)
2360
2361 def deprecation(*args):
RuntimeError:
*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
***
*** fenics@fenicsproject.org
***
*** Remember to include the error message listed below and, if possible,
*** include a *minimal* running example to reproduce the error.
***
*** -------------------------------------------------------------------------
*** Error: Unable to create function space.
*** Reason: Illegal argument for degree, not an integer: i_6.
*** Where: This error was encountered inside functionspace.py.
*** Process: unknown
***
*** DOLFIN version: 1.4.0
*** Git changeset:
*** -------------------------------------------------------------------------