CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Coding in FORTRAN-95- Problems in ALLOCATing memory (http://www.cfd-online.com/Forums/main/107032-coding-fortran-95-problems-allocating-memory.html)

tejasumbarkar September 15, 2012 18: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...?

Thanks,
Tejas

praveen September 16, 2012 05: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 07:42.