alloc_empty_layers Subroutine

public subroutine alloc_empty_layers(cnv)

Allocate layers and arrays profile readers leave unfilled, at size zero.

nuk, derivative layers and advection arrays; keeps renderer's size calls and unconditional loops safe.

Arguments

Type IntentOptional Attributes Name
type(convtype), intent(inout) :: cnv

Record to complete.


Source Code

   subroutine alloc_empty_layers(cnv)
      !! Allocate layers and arrays profile readers leave unfilled, at size zero.
      !!
      !! `nuk`, derivative layers and advection arrays; keeps renderer's `size` calls and
      !! unconditional loops safe.
      ! Arguments
      type(convtype), intent(inout) :: cnv
         !! Record to complete.

      cnv%nnuk = 0
      cnv%nnucd = 0
      cnv%nnukd = 0
      cnv%nneud = 0
      allocate (cnv%nuk(0), cnv%inuk(0))
      allocate (cnv%nucd(0), cnv%inucd(0))
      allocate (cnv%nukd(0), cnv%inukd(0))
      allocate (cnv%neud(0), cnv%ineud(0))
      allocate (cnv%iadv(0), cnv%dmadv(0), cnv%dvadv(0))
   end subroutine alloc_empty_layers