You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thanks for the library. I discovered it yesterday and it's already been very handy to debug my setup.
In return, I just wanted to point out that the subroutine parse_faces_content() fails for faces with more than 10 points as the line data = [[int(s) for s in ln[2:-2].split()] for ln in content[n + 2:n + 2 + num]] reasonably assumes that faces have less than 10 vertices. Ominously it appears I have just produced a mesh containing a face with 10 vertices. As OpenFOAM supports any shape of cell, perhaps consider changing the line to data = [[int(s) for s in re.findall(b"\d+", ln)[1:]] for ln in content[n + 2:n + 2 + num]]. Of course this requires an import of the re library.
The text was updated successfully, but these errors were encountered:
Hi,
Firstly, thanks for the library. I discovered it yesterday and it's already been very handy to debug my setup.
In return, I just wanted to point out that the subroutine
parse_faces_content()
fails for faces with more than 10 points as the linedata = [[int(s) for s in ln[2:-2].split()] for ln in content[n + 2:n + 2 + num]]
reasonably assumes that faces have less than 10 vertices. Ominously it appears I have just produced a mesh containing a face with 10 vertices. As OpenFOAM supports any shape of cell, perhaps consider changing the line todata = [[int(s) for s in re.findall(b"\d+", ln)[1:]] for ln in content[n + 2:n + 2 + num]]
. Of course this requires an import of the re library.The text was updated successfully, but these errors were encountered: