comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Quickest method for calculation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Quickest method for calculation [message #71062] Mon, 24 May 2010 04:25 Go to next message
jaz is currently offline  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 Go to previous message
James[2] is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLDE can not start in Ubuntu10.04
Next Topic: Re: PS file is huge!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:31:50 PDT 2025

Total time taken to generate the page: 0.00527 seconds