From 7bf76e41f6021accbd8894948d0242df37848a8d Mon Sep 17 00:00:00 2001 From: "clemens.fricke" Date: Thu, 22 Aug 2024 14:03:14 +0200 Subject: [PATCH] Fix: wrong order of variables for export function in examples --- examples/export_meshio.py | 8 ++++---- examples/mixd_to_nutils.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/export_meshio.py b/examples/export_meshio.py index 2e81b39d7..7cbc241cc 100644 --- a/examples/export_meshio.py +++ b/examples/export_meshio.py @@ -44,14 +44,14 @@ # Export with subgroup triangles gus.io.meshio.export( - tet, export_path / "export_meshio_subgroups.vtu", submeshes=[fac] + export_path / "export_meshio_subgroups.vtu", tet, submeshes=[fac] ) # The mesh still has to conform the needed format, e.g. stl will discard # tetrahedra gus.io.meshio.export( - tet, export_path / "export_meshio_subgroups.stl", submeshes=[fac] + export_path / "export_meshio_subgroups.stl", tet, submeshes=[fac] ) # Export only tetrahedra - gus.io.meshio.export(tet, export_path / "export_meshio.vtu") - gus.io.meshio.export(tet.to_faces(), export_path / "export_meshio.stl") + gus.io.meshio.export(export_path / "export_meshio.vtu", tet) + gus.io.meshio.export(export_path / "export_meshio.stl", tet.to_faces()) diff --git a/examples/mixd_to_nutils.py b/examples/mixd_to_nutils.py index aea366bcd..05c168db8 100644 --- a/examples/mixd_to_nutils.py +++ b/examples/mixd_to_nutils.py @@ -8,8 +8,8 @@ def main(): mesh = create_mesh() # Export it as .mixd-file and .npz-file - gus.io.mixd.export(mesh, "export/export_mixd.xns") - gus.io.nutils.export(mesh, "export/export_npz.npz") + gus.io.mixd.export("export/export_mixd.xns", mesh) + gus.io.nutils.export("export/export_npz.npz", mesh) # Load the mixd-file and the .npz-file mesh_mixd = gus.io.mixd.load(