Skip to content

Commit

Permalink
Turning off incidence matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
weiliangjin2021 committed Aug 7, 2024
1 parent 58d0fd7 commit 05912d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tidy3d/plugins/mode/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def compute_modes(
angle_phi = mode_spec.angle_phi
omega = 2 * np.pi * freq
k0 = omega / C_0
enable_incidence_matrices = split_curl_scaling is not None or mu_cross is not None
enable_incidence_matrices = False # Experimental feature, always off for now

eps_formated = cls.format_medium_data(eps_cross)
eps_xx, eps_xy, eps_xz, eps_yx, eps_yy, eps_yz, eps_zx, eps_zy, eps_zz = eps_formated
Expand Down Expand Up @@ -331,6 +331,7 @@ def conductivity_model_for_pec(eps, threshold=0.9 * pec_val):
return eps

eps_tensor = conductivity_model_for_pec(eps_tensor)
mu_tensor = conductivity_model_for_pec(mu_tensor)

# Determine if ``eps`` and ``mu`` are diagonal or tensorial
off_diagonals = (np.ones((3, 3)) - np.eye(3)).astype(bool)
Expand Down

0 comments on commit 05912d5

Please sign in to comment.