Sets the 2-d spectrum array. This procedure is overloaded by the generic procedure setSpectrum.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spectrum_type), | intent(inout) | :: | self | Spectrum instance |
||
real(kind=rk), | intent(in), | dimension(:) | :: | spec | Input 1-d spectrum array |
pure subroutine setSpectrum1d(self,spec)
!! Sets the 2-d spectrum array. This procedure is overloaded by the
!! generic procedure setSpectrum.
class(spectrum_type),intent(inout) :: self
!! Spectrum instance
real(kind=rk),dimension(:),intent(in) :: spec
!! Input 1-d spectrum array
self % spec(:,1) = spec
endsubroutine setSpectrum1d