| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_stringkeyvaluepairarray_type) | :: | me |
subroutine truncate_ga_stringkeyvaluepair(me) !------------------------------------------------------------------------ type(grw_stringkeyvaluepairarray_type) :: me !< array to truncate !------------------------------------------------------------------------ type(tem_stringkeyvaluepair_type), allocatable :: tarray(:) !------------------------------------------------------------------------ integer :: ii !------------------------------------------------------------------------ ! nothing to do if container size is not larger than the number of values ! in the array. if (me%containersize > me%nvals) then allocate(tarray(me%nvals)) do ii = 1, me%nvals tarray(ii) = me%val(ii) end do call move_alloc(tarray, me%val) me%containersize = me%nvals end if end subroutine truncate_ga_stringkeyvaluepair