Skip to content

Commit

Permalink
Update create_section usage (#85)
Browse files Browse the repository at this point in the history
Closes #84
  • Loading branch information
jwallwork23 authored May 9, 2024
1 parent 96b3f70 commit 5e49067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions movement/mover.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, mesh, monitor_function=None, **kwargs):
def _get_coordinate_section(self):
entity_dofs = np.zeros(self.dim + 1, dtype=np.int32)
entity_dofs[0] = self.gdim
self._coordinate_section = create_section(self.mesh, entity_dofs)
self._coordinate_section = create_section(self.mesh, entity_dofs)[0]
dm_coords = self.plex.getCoordinateDM()
dm_coords.setDefaultSection(self._coordinate_section)
self._coords_local_vec = dm_coords.createLocalVec()
Expand All @@ -54,7 +54,7 @@ def _update_plex_coordinates(self):
def _get_edge_vector_section(self):
entity_dofs = np.zeros(self.dim + 1, dtype=np.int32)
entity_dofs[1] = 1
self._edge_vector_section = create_section(self.mesh, entity_dofs)
self._edge_vector_section = create_section(self.mesh, entity_dofs)[0]

def coordinate_offset(self, index):
"""
Expand Down

0 comments on commit 5e49067

Please sign in to comment.