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

Coding in FORTRAN-95- Problems in ALLOCATing memory

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2012, 17:55
Default Coding in FORTRAN-95- Problems in ALLOCATing memory
  #1
New Member
 
Tejas Umbarkar
Join Date: Apr 2012
Location: Raleigh, North Carolina, USA
Posts: 2
Rep Power: 0
tejasumbarkar is on a distinguished road
Hey everyone!
I am trying to code a transient flow problem in FORTRAN-95. In course of the code, I need to allocate large memory to arrays and some of these arrays have dimensions like (3*500000*1000) etc. The problem is that when I try to ALLOCATE these sizes to the array, I get the error 'ALLOCATE was unable to obtain sufficient storage'.

Can anyone please shed some light on the matter and suggest a solution...?

Thanks,
Tejas
tejasumbarkar is offline   Reply With Quote

Old   September 16, 2012, 04:56
Default
  #2
Super Moderator
 
Praveen. C
Join Date: Mar 2009
Location: Bangalore
Posts: 342
Blog Entries: 6
Rep Power: 18
praveen is on a distinguished road
First of all check that you have sufficient RAM.

Secondly, use a one-dimensional array.

If it still does not work, then you probably need more RAM.
praveen is offline   Reply With Quote

Reply

Tags
allocate, fortran, memory

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
partitioning memory keeper CFX 4 November 22, 2011 18:28
The computer language for CFD Ringo Main CFD Forum 50 October 8, 2002 11:14
ECC Memory Needed for Clusters? Jonas Larsson Main CFD Forum 1 January 17, 2001 08:08
why Fortran? Matteo Manganelli Main CFD Forum 26 February 22, 2000 16:53
'C' or FORTRAN or 'C++' Yogesh Talekar Main CFD Forum 20 October 21, 1999 04:00


All times are GMT -4. The time now is 19:26.