CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

Coding in FORTRAN-95- Problems in ALLOCATing memory

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

LinkBack Thread Tools Display Modes
Old   September 15, 2012, 17:55
Default Coding in FORTRAN-95- Problems in ALLOCATing memory
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...?

tejasumbarkar is offline   Reply With Quote

Old   September 16, 2012, 04:56
Super Moderator
praveen's Avatar
Praveen. C
Join Date: Mar 2009
Location: Bangalore
Posts: 251
Blog Entries: 6
Rep Power: 9
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


allocate, fortran, memory

Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
partitioning memory keeper CFX 4 November 22, 2011 19: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 09:08
why Fortran? Matteo Manganelli Main CFD Forum 26 February 22, 2000 17: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 15:55.