Returns the water density [kg/m^3].
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spectrum_type), | intent(in) | :: | self | Spectrum instance |
Water density [kg/m^3]
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 function getWaterDensity(self) result(water_density)
!! Returns the water density [kg/m^3].
class(spectrum_type),intent(in) :: self !! Spectrum instance
real(kind=rk) :: water_density !! Water density [kg/m^3]
water_density = self % water_density
endfunction getWaterDensity