fieldlayer Derived Type

type, public :: fieldlayer

Column binned into contour levels.

Run-length step function like nuc and neu energy layers: lev(k) is bin (1 to FIELD_NBINS) reached at coordinate index idx(k). Drives colour fields, so any .kipp or MESA column can be plotted.


Components

Type Visibility Attributes Name Initial
integer(kind=int32), public :: n = 0

Number of entries.

integer(kind=nuc_kind), public, dimension(:), allocatable :: lev

Bin of each entry.

integer(kind=idx_kind), public, dimension(:), allocatable :: idx

Coordinate index where each entry starts.


Source Code

  type fieldlayer
     !! Column binned into contour levels.
     !!
     !! Run-length step function like `nuc` and `neu` energy layers: `lev(k)` is bin (1 to
     !! `FIELD_NBINS`) reached at coordinate index `idx(k)`. Drives colour fields, so any `.kipp` or
     !! MESA column can be plotted.
     integer(kind=int32) :: n = 0
        !! Number of entries.
     integer(kind=nuc_kind), dimension(:), allocatable :: lev
        !! Bin of each entry.
     integer(kind=idx_kind), dimension(:), allocatable :: idx
        !! Coordinate index where each entry starts.
  end type fieldlayer