Skip to content

Commit 73b0787

Browse files
committed
Bugfix
1 parent ecb79ad commit 73b0787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kanapy/input_output.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def write_grain_sets():
149149
# Create element sets for grains
150150
for k, v in grain_dict.items():
151151
f.write('*ELSET, ELSET=GRAIN{0}_SET\n'.format(k))
152-
for enum, el in enumerate(v[:-2], start=1):
152+
for enum, el in enumerate(v[:-1], start=1):
153153
if enum % 16 != 0:
154154
f.write('%d, ' % el)
155155
else:

0 commit comments

Comments
 (0)