Skip to content

Commit

Permalink
Merge pull request #1217 from nschloe/flac-fix
Browse files Browse the repository at this point in the history
fix flac reader
  • Loading branch information
nschloe authored Nov 16, 2021
2 parents 2c38e0a + d25d24c commit ecda7cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/meshio/ansys/_ansys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
I/O for Ansys's msh format, cf.
<https://www.afs.enea.it/fluent/Public/Fluent-Doc/PDF/chp03.pdf>.
I/O for Ansys's msh format.
<https://romeo.univ-reims.fr/documents/fluent/tgrid/ug/appb.pdf>
"""
import logging
import re
Expand Down
3 changes: 2 additions & 1 deletion src/meshio/flac3d/_flac3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def read_buffer(f, binary):
elif line[0] in {"ZGROUP", "FGROUP"}:
flag = zone_or_face[line[0][0]]
name, slot, data = _read_cell_group_ascii(f, line)
cell_sets[f"{flag}:{name}:{slot}"] = np.array(data)
# flac data is 1-based
cell_sets[f"{flag}:{name}:{slot}"] = np.array(data) - 1

line = f.readline().rstrip().split()

Expand Down

0 comments on commit ecda7cc

Please sign in to comment.