clergy1122
Technical User
Hi Guys,
I wrote a code that part of it looks like:
integer: imax
parameter(imax=4000)
double precision,dimension(imax,imax): clst,Nver.
When I used imax=500, it worked so well, but with imax=4000, it gives error like this:
libc detected *** malloc(): memory corruption: 0x1c109cb8 ***
forrtl: error (76): IOT trap signal
/var/spool/pbs/mom_priv/jobs/72248.totor.SC: line 6: 31794 Aborted .
I am using Intel fortran compiler. My friends say it could be due to the array size, but I want to seek your advice as me and my friends are all learners.
Does Fortran has a maximum array size?
Thanks in anticipation.
I wrote a code that part of it looks like:
integer: imax
parameter(imax=4000)
double precision,dimension(imax,imax): clst,Nver.
When I used imax=500, it worked so well, but with imax=4000, it gives error like this:
libc detected *** malloc(): memory corruption: 0x1c109cb8 ***
forrtl: error (76): IOT trap signal
/var/spool/pbs/mom_priv/jobs/72248.totor.SC: line 6: 31794 Aborted .
I am using Intel fortran compiler. My friends say it could be due to the array size, but I want to seek your advice as me and my friends are all learners.
Does Fortran has a maximum array size?
Thanks in anticipation.