Sets the gravitational acceleration [m/s^2].
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spectrum_type), | intent(inout) | :: | self | Spectrum instance |
||
real(kind=rk), | intent(in) | :: | grav | Gravitational acceleration [m/s^2] |
pure elemental subroutine setGravity(self,grav)
!! Sets the gravitational acceleration [m/s^2].
class(spectrum_type),intent(inout) :: self !! Spectrum instance
real(kind=rk),intent(in) :: grav !! Gravitational acceleration [m/s^2]
self % grav = grav
endsubroutine setGravity