# DGT element error

**URL:** <https://fenicsproject.discourse.group/t/dgt-element-error/12995>\
**Category:** dolfinx\
**Created:** [December 9, 2023, 3:55pm UTC](https://fenicsproject.discourse.group/t/dgt-element-error/12995 "2023-12-09T15:55:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![p1rx](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@p1rx](https://fenicsproject.discourse.group/u/p1rx)\
**Post date:** [December 9, 2023, 3:55pm UTC](https://fenicsproject.discourse.group/t/dgt-element-error/12995/1 "2023-12-09T15:55:28Z")

</div>

Hi,  
ive been trying to set a function space with DGT elements but i get an error.  
Calling:

```auto
M_element = ufl.FiniteElement('DGT', mesh.ufl_cell(), 1)
M = dolfinx.fem.functionspace(mesh, M_element)

```

results in:  
`ValueError: Unknown element family: HDiv Trace with cell type triangle`  
and calling the:

```auto
M_element = basix.ufl.element("DGT", mesh.basix_cell(), 1)

```

results in:

```auto
ValueError: Unknown element family: DGT with cell type triangle

```

Any suggestions?

---

<div class="post-metadata">

**Author:** ![francesco-ballarin](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@francesco-ballarin](https://fenicsproject.discourse.group/u/francesco-ballarin)\
**Post date:** [December 9, 2023, 5:19pm UTC](https://fenicsproject.discourse.group/t/dgt-element-error/12995/2 "2023-12-09T17:19:28Z")

</div>

To the best of my knowledge, DGT has not been re-implemented yet in basix.
