← Back to team overview

ufl team mailing list archive

Re: Quadrature degree estimation

 

Oops, hit the send button. Forget this, I think it's ok.

Martin



On Fri, Apr 17, 2009 at 12:27 PM, Martin Sandve Alnæs
<martinal@xxxxxxxxx> wrote:
> However, the rule
>
>    def spatial_derivative(self, v, f, i):
>        return max(f-1, 0)
>
> isn't really correct, e.g. a basis function like "x*y*z"
> differentiated in one direction would still be
>
> Martin
>
>
> On Fri, Apr 17, 2009 at 12:02 PM, Martin Sandve Alnæs
> <martinal@xxxxxxxxx> wrote:
>> Take a look at
>>  ufl/sandbox/algorithmtests/degree_estimation.py
>> just added.
>>
>> Is this good enough for the initial version?
>> It handles mixed elements by using the max
>> degree of subelements, and nonlinear operators
>> by just using the degree of the operands.
>> Should work fine for most forms where accurate
>> estimation is possible.
>>
>> I'll add it into UFL soon.
>>
>> Martin
>>
>


References