Skip to content

Commit 034335d

Browse files
committed
fix subelem id to elemm id
1 parent 684820b commit 034335d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gustaf/io/mixd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def export(
213213
duals.append(boundaries[i])
214214
continue
215215
ind = 1 if i == neigh[0] else 0
216-
duals.append(-int(neigh[ind] + 1)) # fortran's 1 offset
216+
duals.append(-int((neigh[ind] // 3) + 1)) # fortran's 1 offset
217217

218218
for d in duals:
219219
df.write(struct.pack(big_endian_int, d))

0 commit comments

Comments
 (0)