Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(grw_long2darray_type), | intent(out) | :: | me |
dynamic array to init |
||
integer, | intent(in) | :: | width |
width of the container |
||
integer, | intent(in), | optional | :: | length |
initial length of the container |
subroutine init_ga2d_long(me, width, length) ! -------------------------------------------------------------------------- !> dynamic array to init type(grw_long2darray_type), intent(out) :: me !> width of the container integer, intent(in) :: width !> initial length of the container integer, intent(in), optional :: length ! -------------------------------------------------------------------------- me%containerwidth = width if (present(length)) me%containersize = length allocate(me%val(me%containerwidth,me%containersize)) ! reset all values (only positive values are valid) me%val(:,:) = -1_long_k me%nvals = 0 end subroutine init_ga2d_long