On Sat, Jan 23, 2010 at 10:35:03AM +0000, Garth N. Wells wrote: > I've run into an issue when using 'exp' on a Coefficient/Function. In a > .ufl file, I can use > > M = exp(T) > > where T is a Coefficient without problems. Using PyDOLFIN, I get the error: > > AttributeError: exp > > Could this be that the Python version of exp is being called, rather > than the UFL version? How can I check in Python which 'exp' function is > being called? > > Garth
print should work. With UFL, I expect you would get something like # print exp <function exp at 0x2673aa0> Otherwise something like # print exp <ufunc 'exp'>
signature.asc
Description: Digital signature
_______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : [email protected] Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp

