Skip to content

Commit 106168c

Browse files
committed
Simplify (remove in_order checks)
1 parent 944e3e3 commit 106168c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/networks_fenicsx/mesh.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,16 +282,13 @@ def _original_order(a, b):
282282
cell_markers.append(edge_coloring[(segment[0], segment[1])])
283283
start = vertex_coords[segment[0]]
284284
end = vertex_coords[segment[1]]
285-
in_order = _original_order(segment[0], segment[1])
286285
else:
287286
for segment in cells_array:
288287
start_coord_pos = mesh_nodes.shape[0]
289288
start = vertex_coords[segment[0]]
290289
end = vertex_coords[segment[1]]
291290
internal_line_coords = start * (1 - line_weights) + end * line_weights
292291

293-
in_order = _original_order(segment[0], segment[1])
294-
295292
mesh_nodes = np.vstack((mesh_nodes, internal_line_coords))
296293
cells.append(np.array([segment[0], start_coord_pos], dtype=np.int64))
297294
segment_connectivity = (

0 commit comments

Comments
 (0)