On 8 Mar 2019, at 13:34, Shipton, Jemma <j.shipton@imperial.ac.uk> wrote:

Thanks Lawrence, I've tried this... I've attached some code for the shallow water equations with hand coded pullbacks in the mass term (other terms don't need them). If I set do_apply_function_pullbacks=False in tsfc/ufl_utils.py then running the code (sometimes) gives the error below. When it doesn't error, the solver just fails to converge. I can't figure out why the behaviour changes.

Any suggestions most welcome! Thanks!

If you turn that off, you need to write everything in your form in reference space. 

It might be possible to allow UFL to treat forms only partially written in reference space, but I don't think it handles it right now. 

Lawrence