136. Check that assumed-shape array arguments have consistent dimensions.#

topic: Array arguments

Note

This tip is a draft1.

Check that assumed-shape array arguments have consistent dimensions. Using the FINDLOC function of Fortran 2008 on a logical array of constraints can reduce the amount of boilerplate code needed:

ierr = findloc([con1,con2,con3],value=.false.,dim=1)



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.