# <span class='text-muted'>136.</span> Check that assumed-shape array arguments have consistent dimensions.

<span style='font-size: small;' class='text-muted'>topic: {ref}`array-arguments`</span>

```{note}
This tip is a draft[^draft].

[^draft]: 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.
```

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)


---

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">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:<br><br>ierr = findloc([con1,con2,con3],value=.false.,dim=1)<a href="https://t.co/aRUxpXWIEY">pic.twitter.com/aRUxpXWIEY</a></p>&mdash; FortranTip (@fortrantip) <a href="https://twitter.com/fortrantip/status/1497562564334694401?ref_src=twsrc%5Etfw">February 26, 2022</a></blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>