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 2-d spectrum array |
pure subroutine setSpectrum2d(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 2-d spectrum array
self % spec = spec
endsubroutine setSpectrum2d