Allocate tracer w/ maxbands band slots over nm models, all closed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(tracer_t), | intent(out) | :: | tr |
Tracer. |
||
| integer(kind=int32), | intent(in) | :: | maxbands |
Number of band slots; number of models. |
||
| integer(kind=int32), | intent(in) | :: | nm |
Number of band slots; number of models. |
subroutine tracer_alloc(tr, maxbands, nm) !! Allocate tracer w/ `maxbands` band slots over `nm` models, all closed. ! Arguments type(tracer_t), intent(out) :: tr !! Tracer. integer(int32), intent(in) :: maxbands, nm !! Number of band slots; number of models. tr%maxbands = maxbands allocate (tr%i0(maxbands), tr%i1(maxbands)) allocate (tr%opn(maxbands), tr%ext(maxbands)) allocate (tr%ylo(maxbands, nm), tr%yhi(maxbands, nm)) tr%opn = .false. end subroutine tracer_alloc