From d904526cfee578aa2f85c53e8ae166f85994b07c Mon Sep 17 00:00:00 2001
From: Anthony Ricciardi <vtpasquale@gmail.com>
Date: Tue, 8 Aug 2023 05:59:41 -0400
Subject: [PATCH] Update _su2.py

Fix for issue #1429
---
 src/meshio/su2/_su2.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: python-meshio/src/meshio/su2/_su2.py
===================================================================
--- python-meshio.orig/src/meshio/su2/_su2.py	2024-10-24 10:39:19.361595191 +0200
+++ python-meshio/src/meshio/su2/_su2.py	2024-10-24 10:39:19.353595113 +0200
@@ -338,7 +338,9 @@
             f.write(f"MARKER_TAG= {tag}\n".encode())
             f.write(f"MARKER_ELEMS= {count}\n".encode())
 
-            for index, (cell_type, data) in enumerate(mesh.cells):
+            for index, cell in enumerate(mesh.cells):
+                cell_type = cell.type
+                data = cell.data
 
                 if cell_type not in types:
                     continue
