A celestial body (Planet, moon, etc.)
The ID
from the base_class is the NAIF SPICE ID code for the body
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | id | = | 0 |
a unique ID code that distinguishes a variable from other variables of the same type. |
|
character(len=name_len), | public | :: | name | = | '' |
the variable name |
|
real(kind=wp), | public | :: | mu | = | zero |
gravitational parameter [] |
==
operator for base_class variables.
To be equal, they must be the same type and have the same ID
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base_class), | intent(in) | :: | b1 | |||
class(base_class), | intent(in) | :: | b2 |
/=
operator for base_class variables.
To be equal, they must be the same type and have the same ID
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base_class), | intent(in) | :: | b1 | |||
class(base_class), | intent(in) | :: | b2 |
type,extends(base_class),public :: celestial_body !! A celestial body (Planet, moon, etc.) !! The `ID` from the [[base_class]] is the NAIF SPICE ID code for the body real(wp) :: mu = zero !! gravitational parameter \( \mu \) [\(km^3/s^2\)] end type celestial_body