dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #16235
Re: Even more Expression problems
On Friday 16 October 2009 15:09:03 Anders Logg wrote:
> Here's another problem I just ran into:
You just keep bring it on do you!! ;)
I wonder why I keep thinking:
unittest, unittest, unittest ...
> class BoundaryValue(Expression):
> def eval(self, values, x):
> values[0] = ...
>
> This works:
>
> g = BoundaryValue(V)
>
> or
>
> g = BoundaryValue(V=V)
>
> But this does not work:
>
> g = BoundaryValue(element=element)
>
> I get this error:
>
> Exception: Swig director method error. Error detected when calling
> 'Expression.eval_data'
>
> when calling bc.apply() with the above function as argument (which
> results in a call to eval).
Could you pass a minimal script that reproduce it so I can look into it?
Johan
Follow ups
References