229. Use the optional KIND argument of SIZE, MINLOC, FINDLOC etc. for large arrays.#

topic: Arrays

Note

This tip is a draft1.

Since the maximum 32-bit integer is about 2e9, use the optional KIND argument of SIZE, MINLOC, FINDLOC etc. to query an array that may be larger than this or compile with an option such as gfortran -fdefault-integer-8 to make the default integer 64-bit.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.