Skip to content

Commit

Permalink
Tweaks to set_meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Dec 3, 2023
1 parent 6bc1734 commit bd50c1f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions goalie/mesh_seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def set_meshes(self, meshes):
Validate the current meshes and update the associated attributes.
"""
if not isinstance(meshes, Iterable):
meshes = [Mesh(initial_meshes) for subinterval in self.subintervals]
meshes = [Mesh(meshes) for subinterval in self.subintervals]
dim = np.array([mesh.topological_dimension() for mesh in meshes])
if dim.min() != dim.max():
raise ValueError("Meshes must all have the same topological dimension.")
Expand All @@ -140,8 +140,7 @@ def set_meshes(self, meshes):
f"{i}: {nc:7d} cells, {nv:7d} vertices, max aspect ratio {mar:.2f}"
)
debug(100 * "-")

return self.meshes = meshes
self.meshes = meshes

def plot(
self, **kwargs
Expand Down

0 comments on commit bd50c1f

Please sign in to comment.