|
[Sponsors] |
Cannot allocate memory for arrays (1400,1000) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 21, 2008, 10:13 |
Cannot allocate memory for arrays (1400,1000)
|
#1 |
Guest
Posts: n/a
|
Hi,
I hope someone who uses compaq visual fortran can give me some help, although this may not be the proper forum. I'm trying to do dynamic allocation for several arrays (1400,1000) in size. When I try to allocate memory for these arrays, the 1st 2 have no problem. However after that it complains cannot allocate memory. Have I ran out of ram or memory? I've 2gb of ram and I'm using double precision. I thot each real value takes up 8bytes, so 1400x1000 values only uses around 11 Mb. How could my mmemory be insufficient? Is there anyway around this, like using the hdd as memory? It's ok if it's slow though. Thanks. |
|
January 21, 2008, 12:14 |
Re: Cannot allocate memory for arrays (1400,1000)
|
#2 |
Guest
Posts: n/a
|
Try increasing stack size in fortran.
HTP Ertan |
|
January 21, 2008, 21:15 |
Re: Cannot allocate memory for arrays (1400,1000)
|
#3 |
Guest
Posts: n/a
|
Well, I've already increased the stack size to the max of ~4290000000 but it still can't work...
|
|
January 22, 2008, 02:46 |
Re: Cannot allocate memory for arrays (1400,1000)
|
#4 |
Guest
Posts: n/a
|
If you send the code, or post it here, I can try running on my computer. Normally, I can allocate those arrays without a problem. Maybe it's with your code, I don't know. Are you opening too many files and reading from them? If you don't close them that can take much of your memory.
Ertan |
|
January 23, 2008, 22:59 |
Re: Cannot allocate memory for arrays (1400,1000)
|
#5 |
Guest
Posts: n/a
|
Thanks Ertan. I can send u the .exe file to test. of cos, u may be worried that it might be a trojan or virus. anyway, i've send the job over to a linux server and it really seems that the memory requirement is more than 2gb. in fact, it's around 3gb. i guess tt's why.
thanks anyway. |
|
January 27, 2008, 07:38 |
Re: Cannot allocate memory for arrays (1400,1000)
|
#6 |
Guest
Posts: n/a
|
Are your arrays local (stack) variables? If so, try allocating them on the heap instead (COMMON).
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ERROR: Unable to allocate 45256392 bytes of dynamic memory. | eespi002 | ANSYS Meshing & Geometry | 15 | October 27, 2010 14:38 |
allocate memory for fluent | ah_eshtiaghi | FLUENT | 0 | April 29, 2009 12:28 |
Gambit unable to allocate dynamic memory | Abhijeet Karnik | FLUENT | 0 | October 2, 2006 13:59 |
CFX CPU time & real time | Nick Strantzias | CFX | 8 | July 23, 2006 18:50 |
Proam ERROR:Could not allocate more memory | Erika | Siemens | 10 | November 16, 2004 21:42 |