SKIRT / SKIRT9

SKIRT version 9 -- advanced radiative transfer in dusty systems
http://www.skirt.ugent.be
GNU Affero General Public License v3.0
37 stars 31 forks source link

Properly flag custom wavelength band with empty range #213

Closed petercamps closed 6 months ago

petercamps commented 6 months ago

Description The FileBand and ListBand classes now issue a fatal error during setup if the user-defined band has an empty wavelength range, or if the wavelengths are not listed in increasing or decreasing order.

Motivation Before this update, these classes accepted such invalid definitions but would then misbehave (such as generating NaN values).

Context Reported by @BertVdM.