Skip to content

Commit 0b6e9aa

Browse files
committed
Looser tolerance for plane/simulation center match in mode solver symmetry
1 parent 1f5ce51 commit 0b6e9aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tidy3d/components/mode/mode_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def _solver_symmetry(simulation: Simulation, plane: Box) -> tuple[Symmetry, Symm
340340
normal_axis = plane.size.index(0.0)
341341
mode_symmetry = list(simulation.symmetry)
342342
for dim in range(3):
343-
if simulation.center[dim] != plane.center[dim]:
343+
if not isclose(simulation.center[dim], plane.center[dim]):
344344
mode_symmetry[dim] = 0
345345
_, solver_sym = plane.pop_axis(mode_symmetry, axis=normal_axis)
346346
return solver_sym

0 commit comments

Comments
 (0)