Returns a sum of a real number and a domain instance.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(in) | :: | a | l.h.s. real number |
||
class(domain_type), | intent(in) | :: | self | r.h.s. domain instance |
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 elemental type(domain_type) function real_add_domain(a,self) result(domain)
!! Returns a sum of a real number and a domain instance.
real(kind=rk),intent(in) :: a !! l.h.s. real number
class(domain_type),intent(in) :: self !! r.h.s. domain instance
domain = self
domain = self % getSpectrum() + a
endfunction real_add_domain