NanoComp / meep

free finite-difference time-domain (FDTD) software for electromagnetic simulations
GNU General Public License v2.0
1.19k stars 610 forks source link

issue about running binary_grating example script #2536

Open chenyudong92 opened 1 year ago

chenyudong92 commented 1 year ago

Hi,

When I try to run the binary_grating.py example. I change the gp = 10.0 # grating period to gp=1 (or <1). Some error is coming (like below). image

and the error log is: image

If I keep grating period as 10 or 5 (large number), the scrip is no issue.

could you help me to figure it out? Thanks!