Returns .true. if only one direction bin is allocated,
and .false. otherwise.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(spectrum_type), | intent(in) | :: | self | Spectrum instance |
return value (boolean)
pure elemental function isOmnidirectional(self)
!! Returns `.true.` if only one direction bin is allocated,
!! and `.false.` otherwise.
class(spectrum_type),intent(in) :: self !! Spectrum instance
logical :: isOmnidirectional !! return value (boolean)
if(size(self % th) == 1)then
isOmnidirectional = .true.
else
isOmnidirectional = .false.
endif
endfunction isOmnidirectional