Grow polygon scratch epx, epy to hold at least need points.
Discards old contents when grown.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | need |
Number of points needed. |
subroutine ensure_scratch(need) !! Grow polygon scratch `epx`, `epy` to hold at least `need` points. !! !! Discards old contents when grown. ! Arguments integer(int32), intent(in) :: need !! Number of points needed. if (allocated(epx)) then if (int(size(epx), int32) >= need) return deallocate (epx, epy) end if allocate (epx(need), epy(need)) end subroutine ensure_scratch