Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Oct 2, 2024
1 parent 69dd990 commit 0608180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firedrake/bcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def hermite_stride(bcnodes):
fe = self._function_space.finat_element
tdim = self._function_space.mesh().topological_dimension()
if isinstance(fe, finat.Hermite) and tdim == 1:
return bcnodes[::tdim+1] # every second dof is the vertex value
elif isinstance(fe, (finat.Hermite, finat.AlfeldSorokina)):
return bcnodes[::2] # every second dof is the vertex value
elif isinstance(fe, finat.AlfeldSorokina):
# Skip derivative nodes
deriv_nodes = [k for k, node in enumerate(fe.fiat_equivalent.dual) if len(node.deriv_dict) != 0]
deriv_ids = self._function_space.cell_node_list[:, deriv_nodes]
Expand Down

0 comments on commit 0608180

Please sign in to comment.