From 5e49067f7e59ee177b5dd729824afd7e807e9cb5 Mon Sep 17 00:00:00 2001 From: Joe Wallwork <22053413+jwallwork23@users.noreply.github.com> Date: Thu, 9 May 2024 09:42:32 +0100 Subject: [PATCH] Update `create_section` usage (#85) Closes #84 --- movement/mover.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/movement/mover.py b/movement/mover.py index 0c72767..16c443c 100644 --- a/movement/mover.py +++ b/movement/mover.py @@ -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() @@ -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): """