← Back to team overview

ufl team mailing list archive

Re: Restriction syntax

 



Martin Sandve Alnæs wrote:
Is there a mathematical difference?


Splitting hairs, I would say yes and that grad(u('+')) is correct and grad(u)('+') is not because grad(u) is not defined in a classical sense. I prefer grad(u('+')), but FFC used to use grad(u)('+'). My preference is however not strong.

My immediate question is will the generated code differ for grad(u('+')) and grad(u)('+')?

Garth




Martin



On Thu, May 14, 2009 at 8:15 AM, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
Is the correct syntax for the restriction of the gradient (or any other
operator) of a function to one side a facet

    grad(u)('+')

or

    grad(u('+'))

?

Garth

_______________________________________________
UFL-dev mailing list
UFL-dev@xxxxxxxxxx
http://fenics.org/mailman/listinfo/ufl-dev





Follow ups

References