Skip to content

Commit b20fe23

Browse files
committed
Filter empty simulation boundaries in mesher; fixes #539
1 parent 957fc28 commit b20fe23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tidy3d/components/grid/mesher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def parse_structures(
9797

9898
# If empty simulation, return
9999
if len(structures) == 1:
100-
return (domain_bounds, structure_steps)
100+
interval_coords, max_steps = self.filter_min_step(domain_bounds, structure_steps)
101+
return np.array(interval_coords), np.array(max_steps)
101102

102103
# Bounding boxes with the meshing axis rotated to z
103104
struct_bbox = self.rotate_structure_bounds(structures, axis)

0 commit comments

Comments
 (0)