Include the subroutines for the dynamic array.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(grw_grw_stencilelementarray_type), | intent(out) | :: | me | |||
integer, | intent(in), | optional | :: | length |
subroutine init_ga_grw_stencilelement(me, length) type(grw_grw_stencilelementarray_type), intent(out) :: me !< dynamic array to init integer, intent(in), optional :: length !< initial length of the container if (present(length)) then me%containersize = length else me%containersize = zerolength end if ! deallocate ... if( allocated( me%val )) & deallocate(me%val) ! ... and reallocate allocate(me%val(me%containersize)) me%nvals = 0 end subroutine init_ga_grw_stencilelement