Skip to content

Commit

Permalink
Jae's suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Jaewook Lee <[email protected]>
  • Loading branch information
Roxana-P and j042 authored Sep 5, 2023
1 parent 15f4409 commit 64e73d8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions gustaf/io/meshio.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,7 @@ def load(fname, set_boundary=False, return_only_one_mesh=True):
f"{meshes[j][0].whatami}-nodes"
] = np.unique(meshes[j][0].elements)

# Ensures backwards-compartibility
if return_only_one_mesh:
# Return highest-dimensional mesh
return_value = meshes[0][0]
else:
return_value = [mesh[0] for mesh in meshes]
return_value = [mesh[0] for mesh in meshes]

return return_value

Expand Down

0 comments on commit 64e73d8

Please sign in to comment.