set_hatch_for_type Subroutine

private subroutine set_hatch_for_type(t)

Set fill hatch of convection type t.

Matches ConvPlot.conv_hatch: convective '/', thermohaline '\', semiconvective, neutral and overshoot crossed at different densities.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: t

Convection type code, from convdata.f90.


Source Code

   subroutine set_hatch_for_type(t)
      !! Set fill hatch of convection type `t`.
      !!
      !! Matches ConvPlot.conv_hatch: convective '/', thermohaline '\', semiconvective, neutral and
      !! overshoot crossed at different densities.
      ! Arguments
      integer(int32), intent(in) :: t
         !! Convection type code, from convdata.f90.
      select case (t)
      case (CONVECTIVE)                          ! '/'
         call giza_set_fill(3); call giza_set_hatching_style(45.d0, 1.0d0, 0.d0)
      case (THERMOHALINE)                        ! '\'
         call giza_set_fill(3); call giza_set_hatching_style(135.d0, 1.0d0, 0.d0)
      case (OVERSHOOT)                           ! '++'
         call giza_set_fill(4); call giza_set_hatching_style(0.d0, 1.0d0, 0.d0)
      case (NEUTRAL)                             ! 'X'
         call giza_set_fill(4); call giza_set_hatching_style(45.d0, 1.2d0, 0.d0)
      case (SEMICONV)                            ! 'XX'
         call giza_set_fill(4); call giza_set_hatching_style(45.d0, 0.7d0, 0.d0)
      case default
         call giza_set_fill(3); call giza_set_hatching_style(45.d0, 1.0d0, 0.d0)
      end select
   end subroutine set_hatch_for_type