[firedrake] unexpected keyword argument 'search'
Florian Rathgeber
florian.rathgeber at imperial.ac.uk
Thu Apr 30 20:38:16 BST 2015
On 30/04/15 20:12, Colin Cotter wrote:
> Dear Firedrake list,
> Upon executing the following:
>
> from firedrake import *
>
> n = 10
> mesh = UnitSquareMesh(n,n)
>
> V1 = FunctionSpace(mesh,"BDM",2)
> V2 = FunctionSpace(mesh,"DG",1)
>
> W = MixedFunctionSpace((V1,V2))
>
> F = Function(V1).project(Expression(("sin(x[0]*2*pi)*cos(x[1]*2*pi)",
> "-cos(x[0]*2*pi)*sin(x[1]*2*pi)")))
>
> I get:
> File "/home/cjc1/firedrake/firedrake/firedrake/function.py", line 157,
> in project
> return projection.project(b, self, *args, **kwargs)
> File "/home/cjc1/firedrake/firedrake/firedrake/projection.py", line
> 69, in project
> f.interpolate(v)
> File "/home/cjc1/firedrake/firedrake/firedrake/function.py", line 221,
> in interpolate
> subset)
> File "/home/cjc1/firedrake/firedrake/firedrake/function.py", line 275,
> in _interpolate
> op2.par_loop(*args)
> File "<string>", line 2, in par_loop
> File "/home/cjc1/firedrake/PyOP2/pyop2/versioning.py", line 150, in
> modifies_arguments
> retval = func(*args, **kwargs)
> File "/home/cjc1/firedrake/PyOP2/pyop2/op2.py", line 276, in par_loop
> return backends._BackendSelector._backend.par_loop(kernel, iterset,
> *args, **kwargs)
> File "/home/cjc1/firedrake/PyOP2/pyop2/base.py", line 4252, in par_loop
> return _make_object('ParLoop', kernel, it_space, *args,
> **kwargs).enqueue()
> File "/home/cjc1/firedrake/PyOP2/pyop2/backends.py", line 72, in
> _make_object
> return _BackendSelector._backend.__dict__[obj](*args, **kwargs)
> File "<string>", line 2, in __init__
> File "/home/cjc1/firedrake/PyOP2/pyop2/utils.py", line 122, in wrapper
> return f(*args, **kwargs)
> File "/home/cjc1/firedrake/PyOP2/pyop2/base.py", line 3906, in __init__
> ast_info = ast_visit(self._kernel._ast, search=ast.FunDecl)
> TypeError: visit() got an unexpected keyword argument 'search'
>
> If I've done everything correctly, this is with everything on master.
> What do you think might be wrong?
I suspect your COFFEE is way out of date: the search argument was
introduced in ceacc29c from 11th March.
Florian
> cheers
> --cjc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2980 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.ic.ac.uk/pipermail/firedrake/attachments/20150430/4768ea4c/attachment.p7s>
More information about the firedrake
mailing list