Skip to content

Commit

Permalink
Syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed Jan 13, 2025
1 parent 2569b87 commit be91bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/dolfinx/fem/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ ElementDofLayout create_element_dof_layout(const fem::FiniteElement<T>& element,
int bs = element.block_size();
if (bs > 1 and element.num_sub_elements() != bs)
{
raise std::runtime_error("For blocked elements, the number of sub-elements "
"must be equal to the block size.")
throw std::runtime_error("For blocked elements, the number of sub-elements "
"must be equal to the block size.");
}

for (int i = 0; i < element.num_sub_elements(); ++i)
Expand Down

0 comments on commit be91bdc

Please sign in to comment.