From: Eli Osherovich on
Is I understand correctly, 'size', and other array inquiry functions
return integer of default type.
What happens in case the result is too large to fit this type ?

Thank you.
From: Richard Maine on
Eli Osherovich <eli.osherovich(a)gmail.com> wrote:

> Is I understand correctly, 'size', and other array inquiry functions
> return integer of default type.
> What happens in case the result is too large to fit this type ?

See the optional kind= arguments to all the intrinsics for which that is
an issue. That is an f2003 feature, added for this exact reason. I
suspect that most f95 compilers have implemented this feature by now -
at least those compilers that can support arrays large enough for it to
be an issue.

--
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain
From: Eli Osherovich on
On Mar 20, 7:41 pm, nos...(a)see.signature (Richard Maine) wrote:
> Eli Osherovich <eli.osherov...(a)gmail.com> wrote:
> > Is I understand correctly, 'size', and other array inquiry functions
> > return integer of default type.
> > What happens in case the result is too large to fit this type ?
>
> See the optional kind= arguments to all the intrinsics for which that is
> an issue. That is an f2003 feature, added for this exact reason. I
> suspect that most f95 compilers have implemented this feature by now -
> at least those compilers that can support arrays large enough for it to
> be an issue.
>
> --
> Richard Maine                    | Good judgment comes from experience;
> email: last name at domain . net | experience comes from bad judgment.
> domain: summertriangle           |  -- Mark Twain

Richard,
Thank you very much.