Assigns a 1-d array of reals to a spectrum
instance. This procedure
overloads the assignment ('=') operator.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spectrum_type), | intent(inout) | :: | self | l.h.s. |
||
real(kind=rk), | intent(in), | dimension(:) | :: | array | r.h.s. array of reals |
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 subroutine assign_array_1d(self,array)
!! Assigns a 1-d array of reals to a `spectrum` instance. This procedure
!! overloads the assignment ('=') operator.
class(spectrum_type),intent(inout) :: self
!! l.h.s. `spectrum` instance
real(kind=rk),dimension(:),intent(in) :: array
!! r.h.s. array of reals
call self % setSpectrum(array)
endsubroutine assign_array_1d