| temporary() pitfall [message #23003] |
Mon, 18 December 2000 05:12 |
Jaco van Gorkom
Messages: 97 Registered: November 2000
|
Member |
|
|
Hi,
I use the temporary(MyArray) function to conserve memory when doing
operations on large arrays. This works fine, except if there is still
not enough memory to do the operation. Then IDL stops execution, tells
me there is not enough memory, and MyArray is undefined. IDL follows the
documentation here, but I lose my array contents!
Does anyone know of a way
- to test in advance whether the operation is going to fail, or
- to recover the contents of my original array?
The operation I do varies, today I was trying to do
MyArray = transpose(temporary(MyArray))
acting on the results of a rather lengthy computation.
Thanks for any tips,
Jaco
------------------------------
Jaco van Gorkom gorkom@rijnh.nl
FOM-Instituut voor Plasmafysica Rijnhuizen
|
|
|
|