Skip to content

Commit e2ed09d

Browse files
committed
BUG: Fix fracture qty export for 2d
1 parent f6be0a1 commit e2ed09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/porepy/viz/data_saving_model_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def ensure_array(
470470
# the normal traction.
471471
traction_loc = traction[
472472
cell_offsets_nd[id] : cell_offsets_nd[id + 1]
473-
].reshape((3, -1), order="F")
473+
].reshape((self.nd, -1), order="F")
474474
# Avoid division by zero. If normal traction is zero (open fractures), we
475475
# set it to 1.
476476
zero_inds = np.isclose(traction_loc[-1], 0)

0 commit comments

Comments
 (0)