This routine does the allocation job
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_bc_header_type), | intent(out) | :: | me |
The boundary header |
||
integer, | intent(in) | :: | nBCs |
subroutine tem_init_bc_header( me, nBCs ) ! --------------------------------------------------------------------------- !> The boundary header type(tem_bc_header_type), intent(out) :: me integer, intent(in) :: nBCs ! --------------------------------------------------------------------------- me%nBCs = nBCs allocate(me%Label(me%nBCs)) allocate(me%BC_kind(me%nBCs)) allocate(me%BC_ID(me%nBCs)) ! Set initial values for BC_ID me%BC_ID = -1 end subroutine tem_init_bc_header