Maximum dimension array

  • Follow


I would define an array y(1:800e6) but it doesn't seem possible...
0
Reply Allamarein 10/2/2010 9:34:47 PM

Allamarein <matteo.diplomacy@gmail.com> wrote:

> I would define an array y(1:800e6) but it doesn't seem possible...

maybe y(1:int(800e6))

In Fortran 77 REAL values were allowed for subscripts, though
not for dimensions.  Even that one went away in Fortran 90 and later.

-- glen
0
Reply glen 10/2/2010 9:53:03 PM


On 10/2/2010 2:34 PM, Allamarein wrote:
> I would define an array y(1:800e6) but it doesn't seem possible...
This depends on the facilities of each implementation.  On most 32-bit 
OS, and also 64-bit Windows (and linux with typical defaults), all 
static data and code must fit within 2GB. Allocatable arrays have larger 
limits in most implementations.

-- 
Tim Prince
0
Reply Tim 10/2/2010 10:00:59 PM

On 3 Ott, 00:00, Tim Prince <tpri...@computer.org> wrote:
> On 10/2/2010 2:34 PM, Allamarein wrote:> I would define an array y(1:800e=
6) but it doesn't seem possible...
>
> This depends on the facilities of each implementation. =A0On most 32-bit
> OS, and also 64-bit Windows (and linux with typical defaults), all
> static data and code must fit within 2GB. Allocatable arrays have larger
> limits in most implementations.
>
> --
> Tim Prince

I refer my self to the number of elements...not the memory usage
0
Reply Allamarein 10/2/2010 10:22:53 PM

"Allamarein" <matteo.diplomacy@gmail.com> wrote in message 
news:1d634157-881e-46f3-aca4-d9d807609c7d@i21g2000yqg.googlegroups.com...

>I refer my self to the number of elements...not the memory usage

Memory usage is related to the number of elements.

If the array is of characters, then memory required is
800,000,000 bytes.

If the array of of integers or default reals, memory
required would typically be 4 � 800,000,000 bytes,
i.e., 3,200,000,000 bytes. 


0
Reply robin 10/3/2010 1:10:33 AM

4 Replies
1156 Views

(page loaded in 0.091 seconds)

Similiar Articles:













7/22/2012 9:55:34 PM


Reply: