dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #16234
Even more Expression problems
Here's another problem I just ran into:
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).
--
Anders
Attachment:
signature.asc
Description: Digital signature
Follow ups