CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Cannot allocate memory for arrays (1400,1000)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2008, 10:13
Default Cannot allocate memory for arrays (1400,1000)
  #1
Quarkz
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.
  Reply With Quote

Old   January 21, 2008, 12:14
Default Re: Cannot allocate memory for arrays (1400,1000)
  #2
Ertan Karaismail CFD&AMP
Guest
 
Posts: n/a
Try increasing stack size in fortran.

HTP

Ertan
  Reply With Quote

Old   January 21, 2008, 21:15
Default Re: Cannot allocate memory for arrays (1400,1000)
  #3
Quarkz
Guest
 
Posts: n/a
Well, I've already increased the stack size to the max of ~4290000000 but it still can't work...
  Reply With Quote

Old   January 22, 2008, 02:46
Default Re: Cannot allocate memory for arrays (1400,1000)
  #4
Ertan Karaismail CFD&AMP
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
  Reply With Quote

Old   January 23, 2008, 22:59
Default Re: Cannot allocate memory for arrays (1400,1000)
  #5
Quarkz
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.
  Reply With Quote

Old   January 27, 2008, 07:38
Default Re: Cannot allocate memory for arrays (1400,1000)
  #6
Steve
Guest
 
Posts: n/a
Are your arrays local (stack) variables? If so, try allocating them on the heap instead (COMMON).
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:00.