edmundsj / rcwa

Rigorous Coupled Wave Analysis for the calculation of Photonic Crystal R/T spectra
MIT License
93 stars 29 forks source link

Check for number of harmonics exceeding input data #46

Open edmundsj opened 2 years ago

edmundsj commented 2 years ago

If the requested number of harmonics exceeds the size of the raw permittivity data, the software currently throws an error. It should instead use the maximum number of harmonics possible and give the user a warning instead.