CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   Coding in FORTRAN-95- Problems in ALLOCATing memory (

tejasumbarkar September 15, 2012 17:55

Coding in FORTRAN-95- Problems in ALLOCATing memory
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...?


praveen September 16, 2012 04:56

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.

All times are GMT -4. The time now is 06:11.