Return convection-type code of zone character.
Codes per ZONE_CHAR table (convdata.f90); unknown characters are RADIATIVE.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=1), | intent(in) | :: | ch |
Zone character from |
pure function type_of(ch) result(t) !! Return convection-type code of zone character. !! !! Codes per `ZONE_CHAR` table (convdata.f90); unknown characters are `RADIATIVE`. ! Arguments character(len=1), intent(in) :: ch !! Zone character from `yzip`. integer(int32) :: t select case (ch) case (ZONE_CHAR(NEUTRAL)); t = NEUTRAL case (ZONE_CHAR(OVERSHOOT)); t = OVERSHOOT case (ZONE_CHAR(SEMICONV)); t = SEMICONV case (ZONE_CHAR(CONVECTIVE)); t = CONVECTIVE case (ZONE_CHAR(THERMOHALINE)); t = THERMOHALINE case default; t = RADIATIVE end select end function type_of