<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>In C I&#39;d get a return value from malloc (like, NULL in this case, assuming the memory allocation failed). How does that work in modern fortran?
</div></blockquote><div><br>If it&#39;s a static array, it&#39;ll just crash without even &#39;starting&#39; simply because not enough memory is available.&nbsp; If it&#39;s using the ALLOCATE command in F90, I believe it stops unless the &#39;STAT&#39; (status) option is provided and is greater than 0.&nbsp; 
<br></div></div><br>&nbsp; Fortran <i>does</i> allow you to specify weird bounds, such as (10:12), and even though the &#39;upper bound&#39; in this example is the number twelve, the number of elements is only 3 (with indices of 10, 11 and 12), but that doesn&#39;t seem to be the case with the original poster&#39;s code, so the array does seem to be allocating 
3.6TB, assuming integers are 4 bytes.&nbsp; <br><br>&nbsp; Cheers,<br>&nbsp; - Brian<br>


!DSPAM:4761c0a2208721691722815!