flexcompute / tidy3d

Fast electromagnetic solver (FDTD) at scale.
https://docs.flexcompute.com/projects/tidy3d/en/latest/
GNU Lesser General Public License v2.1
189 stars 44 forks source link

Fix bug in subsection with nonlinear materials source detection #1977

Closed caseyflex closed 1 month ago

caseyflex commented 1 month ago

Subsection removes sources not intersecting the region, but some nonlinear materials rely on these sources to obtain n0 and freq0.

This PR updates all such nonlinear materials during subsection to obtain and hardcode n0 and freq0 so they no longer require the sources.

FilipeFcp commented 1 month ago

Hi @caseyflex. It worked here. Thank you!