Quickest method for calculation [message #71062] |
Mon, 24 May 2010 04:25  |
jaz
Messages: 6 Registered: October 2008
|
Junior Member |
|
|
Due to the size of the simulations i'm running, my programs are
incredibly memory intensive.
As a result, some of the calculations are taking quite a large amount
of time to compute. Here is an example:
These are the array sizes:-
top_tem = fltarr(200000,2002)
y.rho = fltarr(200000,2002)
temperature = fltarr(200000,2002)
and this is one of the calculations i do, which takes quite a while:
top_tem = TEMPORARY(top_tem) + (y.rho^2.0 * temperature)
i use TEMPORARY so that it doesn't eat up much memory.
But, is there a better way to do this calculation? Would it be better
to break it up somehow?
Any advice would be great.
|
|
|
Re: Quickest method for calculation [message #71106 is a reply to message #71062] |
Wed, 26 May 2010 09:16  |
James[2]
Messages: 44 Registered: November 2009
|
Member |
|
|
Your floating point arrays take approximately 1.6 GB each. Do you
have enough memory to hold three of them, plus a fourth for temporary
calculations? If not, you might want to split the processing into
smaller chunks.
|
|
|