I would like to implement such an expression in the UFL language:
$$ \int_{\Gamma} [ < \mathrm{cof} ( D^2 u) > \nabla u ] v \mathrm{dS} $$
However if I write
jump(avg(cofD2u)*grad(u),n)*v*dS
it says "ffc cannot restrict an expression twice". How can I come over this problem?