From 64e73d8f92169f248f6b49340012213fa8f60ba8 Mon Sep 17 00:00:00 2001 From: Roxana-P Date: Tue, 5 Sep 2023 09:30:03 +0200 Subject: [PATCH] Jae's suggestions Co-authored-by: Jaewook Lee <47114801+j042@users.noreply.github.com> --- gustaf/io/meshio.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gustaf/io/meshio.py b/gustaf/io/meshio.py index 230462862..a98e5ef6c 100644 --- a/gustaf/io/meshio.py +++ b/gustaf/io/meshio.py @@ -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