Here's what I've found out so far: - The tabulate_tensor functions in your example should be equal, it's actually the signature that is correct. - The bug is independent of ffc representation (quadrature, tensor, and uflacs), - In uflacs I see some tables for CG2 values are different which they shouldn't be. Since not all of the table generation is shared between representations, this narrows it down. - My strong hunch now is that some place in FFC, related to tabulation of element values from FIAT, access UFL elements without replacing with the mapped element. I have checked in a slightly simpler script in uflacs that cause a failure, which could be related. Martin On 11 March 2013 19:59, Johan Hake