Esempio n. 1
0
def restrict_fiat(element, domain, take_closure):
    try:
        return FiatElement(
            FIAT.RestrictedElement(element._element,
                                   restriction_domain=domain))
    except ValueError:
        return null_element
Esempio n. 2
0
def fiat_compat(element):
    from tsfc.fiatinterface import create_element
    from finat.fiat_elements import FiatElement

    assert element.cell().is_simplex()
    return FiatElement(create_element(element))