Skip to content

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed Nov 11, 2024
1 parent 197b809 commit bf6758e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cpp/dolfinx/fem/FiniteElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ FiniteElement<T>::FiniteElement(
// constructed as rank-1 with shape (6,). It should be really be
// shape=(3, 3) with block size 6.

if (value_shape)
{
// Create sub-elements (one for each block)
_sub_elements
= std::vector<std::shared_ptr<const FiniteElement<geometry_type>>>(
_bs, std::make_shared<FiniteElement<T>>(element));

_reference_value_shape
= *value_shape; // FIXME: should be base element value shape?
}

_space_dim = _bs * element.dim();
// if (value_shape)
// {
// // Create sub-elements (one for each block)
// _sub_elements
// = std::vector<std::shared_ptr<const FiniteElement<geometry_type>>>(
// _bs, std::make_shared<FiniteElement<T>>(element));

// _reference_value_shape
// = *value_shape; // FIXME: should be base element value shape?
// }

// _space_dim = _bs * element.dim();

std::string family;
switch (_element->family())
Expand Down

0 comments on commit bf6758e

Please sign in to comment.