[firedrake] unexpected keyword argument 'search'

Colin Cotter colin.cotter at imperial.ac.uk
Thu Apr 30 21:42:34 BST 2015


Thanks, it turned out that my laptop has a pip install of coffee that I had
forgotten about, works now.

cheers
--cjc

On 30 April 2015 at 20:38, Florian Rathgeber <
florian.rathgeber at imperial.ac.uk> wrote:

> 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
>
>
> _______________________________________________
> firedrake mailing list
> firedrake at imperial.ac.uk
> https://mailman.ic.ac.uk/mailman/listinfo/firedrake
>
>
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the firedrake mailing list