← Back to team overview

ufl team mailing list archive

Re: Restriction syntax

 

On Thu, May 14, 2009 at 08:40:41AM +0100, Garth N. Wells wrote:
> 
> 
> 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

No, since the restriction will be propagated to the leaves... :-)

-- 
Anders


> 
> 
> 
> > 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
> >>
> 
> 
> _______________________________________________
> UFL-dev mailing list
> UFL-dev@xxxxxxxxxx
> http://fenics.org/mailman/listinfo/ufl-dev

Attachment: signature.asc
Description: Digital signature


Follow ups

References