fancompute / angler

Frequency-domain photonic simulation and inverse design optimization for linear and nonlinear devices
https://arxiv.org/abs/1811.01255
MIT License
158 stars 49 forks source link

'W' matrix (for filter) cannot be constructed when NPML=[0,0]. #37

Open aonurdasdemir opened 5 years ago

aonurdasdemir commented 5 years ago

Hi, When I don't want to use PML and make it [0,0], get_W function from filter gives the error 'dimension mismatch' while constructing W matrix as sparce matrix. I think that problem is on defining i_range and j_range but I couldn't find how to change them properly.