Skip to content

Commit 61e18ee

Browse files
committed
another nastran fix
1 parent 1c1ae2f commit 61e18ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/meshio/nastran/_nastran.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def add_cell(nastran_type, cell, cell_ref):
130130
# Blank lines or comments
131131
if len(next_line) < 4 or next_line.startswith(("$", "//", "#")):
132132
continue
133+
133134
elif next_line[0] in ["+", "*"]:
134135
# From
135136
# <https://docs.plm.automation.siemens.com/data_services/resources/nxnastran/10/help/en_US/tdocExt/pdf/User.pdf>:
@@ -139,6 +140,7 @@ def add_cell(nastran_type, cell, cell_ref):
139140
# continues on another line.
140141
c, _ = _chunk_line(next_line)
141142
chunks.append(c[1:])
143+
142144
elif len(chunks[-1]) == 10 and chunks[-1][-1] == " ":
143145
# automatic continuation: last chunk of previous line and first
144146
# chunk of current line are spaces
@@ -148,7 +150,7 @@ def add_cell(nastran_type, cell, cell_ref):
148150
chunks.append(c[1:])
149151
else:
150152
# not a continuation
151-
chunks.append(c)
153+
break
152154
else:
153155
break
154156

@@ -223,7 +225,6 @@ def add_cell(nastran_type, cell, cell_ref):
223225
points_id_dict = dict(zip(points_id, np.arange(len(points), dtype=int)))
224226
points_id_get = np.vectorize(points_id_dict.__getitem__)
225227
for k, c in enumerate(cells):
226-
print(c.data)
227228
cells[k] = CellBlock(c.type, points_id_get(c.data))
228229

229230
# Construct the mesh object

0 commit comments

Comments
 (0)