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