@@ -130,6 +130,7 @@ def add_cell(nastran_type, cell, cell_ref):
130
130
# Blank lines or comments
131
131
if len (next_line ) < 4 or next_line .startswith (("$" , "//" , "#" )):
132
132
continue
133
+
133
134
elif next_line [0 ] in ["+" , "*" ]:
134
135
# From
135
136
# <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):
139
140
# continues on another line.
140
141
c , _ = _chunk_line (next_line )
141
142
chunks .append (c [1 :])
143
+
142
144
elif len (chunks [- 1 ]) == 10 and chunks [- 1 ][- 1 ] == " " :
143
145
# automatic continuation: last chunk of previous line and first
144
146
# chunk of current line are spaces
@@ -148,7 +150,7 @@ def add_cell(nastran_type, cell, cell_ref):
148
150
chunks .append (c [1 :])
149
151
else :
150
152
# not a continuation
151
- chunks . append ( c )
153
+ break
152
154
else :
153
155
break
154
156
@@ -223,7 +225,6 @@ def add_cell(nastran_type, cell, cell_ref):
223
225
points_id_dict = dict (zip (points_id , np .arange (len (points ), dtype = int )))
224
226
points_id_get = np .vectorize (points_id_dict .__getitem__ )
225
227
for k , c in enumerate (cells ):
226
- print (c .data )
227
228
cells [k ] = CellBlock (c .type , points_id_get (c .data ))
228
229
229
230
# Construct the mesh object
0 commit comments