Data layers and band caches traced from them.
A "layer" is a per-model quantity traced into bands: convection types (yzip zones), energy
layers (signed integer contour levels, positive gain, negative loss; 0 nuclear generation, 1
nuclear loss, 2 neutrinos) or colour fields (columns in FIELD_NBINS bins, registered in
convdata.f90). Caches traced on first use; cache_invalidate drops them on load and axis
rebuild.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(bandset_t), | public | :: | conv_bands(NCONVTYPES) |
Bands of each convection type, indexed by |
|||
| type(chainset_t), | public | :: | conv_chains(NCONVTYPES) |
Exact region outline of each convection type. |
|||
| logical, | public | :: | conv_valid | = | .false. |
|
|
| type(ecache_t), | public | :: | ecache(0:2) |
Band cache of each energy layer. Traced on first use, so |
|||
| type(fcache_t), | public, | allocatable | :: | fcache(:,:) |
Band cache of each colour field, Traced on first use of each field and scale. |
Band cache of one energy layer.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | valid | = | .false. |
Bands traced. |
|
| integer(kind=int32), | public | :: | gmax | = | 0 |
Highest gain and loss levels, loss as positive number. |
|
| integer(kind=int32), | public | :: | lmax | = | 0 |
Highest gain and loss levels, loss as positive number. |
|
| type(bandset_t), | public, | allocatable | :: | gain(:) |
Bands of each gain level, |
||
| type(bandset_t), | public, | allocatable | :: | loss(:) |
Bands of each gain level, |
Band cache of one colour field on one scale.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | valid | = | .false. |
Bands traced. |
|
| integer(kind=int32), | public | :: | nlev | = | 0 |
Number of contour bins. |
|
| type(bandset_t), | public, | allocatable | :: | band(:) |
Bands of each bin, |
Return convection-type code of zone character.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=1), | intent(in) | :: | ch |
Zone character from |
Return energy layer named by st%cfield, or -1 if not an energy layer.
Return colour field named by st%cfield, 1..nfields, or 0.
Return index of first registered name in names, or 0.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | names(:) |
Canonical field names, in order of preference. |
Return step-function entry count of colour field f in model i.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | i |
Model index. |
||
| integer(kind=int32), | intent(in) | :: | f |
Colour field index. |
Return colour-field scale index: 1 default, 2 flipped by st%cflip.
Return step-function entry count of energy layer in model i.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | i |
Model index. |
||
| integer(kind=int32), | intent(in) | :: | layer |
Energy layer, 0 to 2. |
Copy step function of colour field f in model i into buffers.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | i |
Model index. |
||
| integer(kind=int32), | intent(in) | :: | f |
Colour field index. |
||
| integer(kind=int32), | intent(out) | :: | vals(:) |
Contour bin of each entry, at least |
||
| integer(kind=int32), | intent(out) | :: | idxs(:) |
Coordinate index where each entry starts, at least |
||
| integer(kind=int32), | intent(out) | :: | n |
Number of entries copied. |
Return minimum log10 gain and loss levels of energy layer.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | layer |
Energy layer, 0 to 2. |
||
| integer(kind=int32), | intent(out) | :: | gmin |
log10 of lowest gain level. |
||
| integer(kind=int32), | intent(out) | :: | lmin |
log10 of lowest loss level. |
Copy step function of energy layer in model i into new arrays.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | i |
Model index. |
||
| integer(kind=int32), | intent(in) | :: | layer |
Energy layer, 0 to 2. |
||
| integer(kind=int32), | intent(out), | allocatable | :: | vals(:) |
Signed contour level of each entry. |
|
| integer(kind=int32), | intent(out), | allocatable | :: | idxs(:) |
Coordinate index where each entry starts. |
|
| integer(kind=int32), | intent(out) | :: | n |
Number of entries. |
Copy step function of energy layer in model i into buffers.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | i |
Model index. |
||
| integer(kind=int32), | intent(in) | :: | layer |
Energy layer, 0 to 2. |
||
| integer(kind=int32), | intent(out) | :: | vals(:) |
Signed contour level of each entry, at least |
||
| integer(kind=int32), | intent(out) | :: | idxs(:) |
Coordinate index where each entry starts, at least |
||
| integer(kind=int32), | intent(out) | :: | n |
Number of entries copied. |
Find highest gain and loss levels of energy layer over all models.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | layer |
Energy layer, 0 to 2. |
||
| integer(kind=int32), | intent(out) | :: | gmax |
Highest positive level, or 0. |
||
| integer(kind=int32), | intent(out) | :: | lmax |
Magnitude of most negative level, or 0. |
Find intervals of model i where step function reaches level L.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | i |
Model index. |
||
| integer(kind=int32), | intent(in) | :: | vals(:) |
Level of each step-function entry. |
||
| integer(kind=int32), | intent(in) | :: | idxs(:) |
Coordinate index where each entry starts. |
||
| integer(kind=int32), | intent(in) | :: | n |
Number of entries. |
||
| integer(kind=int32), | intent(in) | :: | L |
Contour level, nonzero. |
||
| real(kind=real64), | intent(out) | :: | ivlo(:) |
Lower mass (g) or radius (cm) of each interval, at least |
||
| real(kind=real64), | intent(out) | :: | ivhi(:) |
Upper mass (g) or radius (cm) of each interval, at least |
||
| integer(kind=int32), | intent(out) | :: | m |
Number of intervals. |
Trace every gain and loss level of energy layer into ecache(layer).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | layer |
Energy layer, 0 to 2. |
Trace every contour bin of colour field f into fcache.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | f |
Colour field index. |
Drop every cached band, on file load or axis rebuild.