← Back to team overview

dolfin team mailing list archive

Re: How to find out if a Function is continuous

 

This is maybe cumbersome, but you can identify DG elements by checking
the number of dofs per mesh entity through ufc::dof_map, with the function
    /// Return the number of dofs associated with each cell entity of
dimension d
    virtual unsigned int num_entity_dofs(unsigned int d) const = 0;
if
  dm->num_entity_dofs(0) == dm->max_local_dimension()
then no dofs are shared between elements.

However this does not cover elements where dofs are shared but
the functions are still discontinuous in certain senses.
I guess more information will be needed in the ufc element classes.

Martin


On 11 September 2012 16:13, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
> On Tue, Sep 11, 2012 at 11:36 AM, Joachim Berdal Haga <jobh@xxxxxxxxx> wrote:
>> Ok! I'll just check the element family then. Is there a more robust
>> way to query it (in C++) than parsing
>> f->function_space()->element()->signature()?
>>
>
> The signature should not be used. It's not robust. Using the signature
> has caused problems in the past.
>
> Garth
>
>> -j.
>>
>> On 11 September 2012 12:09, Kent-Andre Mardal <kent-and@xxxxxxxxx> wrote:
>>> I guess it is only the Lagrange/CG element that is continuous. The others
>>> are only continuous
>>> in certain senses or directions. I don't think there is any meta data that
>>> contains this
>>> info.
>>>
>>> Kent
>>>
>>> On 11 September 2012 11:56, Joachim Berdal Haga <jobh@xxxxxxxxx> wrote:
>>>>
>>>> Is there a simple way to find out whether an arbitrary Function (or
>>>> FunctionSpace) is continuous across cells in C++?
>>>>
>>>> -j.
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dolfin
>>>> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dolfin
>>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dolfin
>> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dolfin
>> More help   : https://help.launchpad.net/ListHelp
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References