dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #06037
Error in pydolfin/Function/demo
I believe I also saw this error on Kristians computer last week:
.../dolfin/src/demo/nls/nonlinearpoisson/python$ python demo.py
...
Traceback (most recent call last):
File "demo.py", line 158, in <module>
u0 = Function(element, mesh, x, compiled_form)
File "/opt/dolfin-dev//lib/python2.5/site-packages/dolfin/assemble.py",
line 99, in __init__
cpp_Function.__init__(self, *others)
File "/opt/dolfin-dev//lib/python2.5/site-packages/dolfin/dolfin.py",
line 3047, in __init__
this = _dolfin.new_cpp_Function(*args)
NotImplementedError: Wrong number of arguments for overloaded function
'new_cpp_Function'.
Possible C/C++ prototypes are:
...
dolfin::Function(PyObject *,dolfin::Mesh &,dolfin::Vector &,dolfin::Form &)
...
The problem is that jit returns a ufc::form, not a dolfin::Form which
dolfin::Function expects.
--
Martin
Follow ups