Returns .true.
if only one frequency bin is allocated,
and .false.
otherwise.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spectrum_type), | intent(in) | :: | self | Spectrum instance |
return value (boolean)
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
pure elemental function isMonochromatic(self)
!! Returns `.true.` if only one frequency bin is allocated,
!! and `.false.` otherwise.
class(spectrum_type),intent(in) :: self !! Spectrum instance
logical :: isMonochromatic !! return value (boolean)
if(size(self % f) == 1)then
isMonochromatic = .true.
else
isMonochromatic = .false.
endif
endfunction isMonochromatic