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

Home » Public Forums » archive » christmas survey on structures...
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
christmas survey on structures... [message #7736] Fri, 20 December 1996 00:00
alpha is currently offline  alpha
Messages: 49
Registered: September 1996
Member
hello,

here is a little programm for you...

please test on your system and tell me the point of failure

pro fail

for te=1,105 do begin
anzahl=te
tname=strarr(anzahl)
for i=0,anzahl-1 do tname(i)='TN_'+strcompress(string(i),/remove_all)

ttyp=strarr(anzahl)
; for testing choose one of it
;ttyp(*)="'String-test'"
;ttyp(*)="fltarr(10)"
ttyp(*)="dcomplexarr(102)"

ziel=byte(0)
estring='ziel={'
for i=0,anzahl-1 do begin
if i gt 0 then estring=estring+','
estring=estring+tname(i)+':'+ttyp(i)
endfor
estring=estring+'}'

if execute(estring) then begin
print,' Execute OK: ',te
endif else begin
goto,abbruch
endelse
endfor

abbruch:
print, ' Execute failed at ',te
end

i testet it with IDL 4.0.1

on VMS alpha: failed at 45
DU 3.2 G : failed at 36

i testet it with string-test two:

VMS failes on 100
DU failes on 86


i know that i can use create_struct for it, i havent testet
the error in that case so far...

Happy Xmas for you all !


Panther




--
Panther in the Jungle __..--''``\--....___ _..,_
-BELIEVE AND DECEIVE- _.-' .-/"; ` ``<._ ``-+'~=.
http://www.ang-physik _.-' _..--.'_ \ `(^) )
.uni-kiel.de/~hendrik ((..-' (< _ ;_..__ ; `'
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: XGobi
Next Topic: eigenvalue solver for non-symmetric complex matrix

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

Current Time: Wed Oct 08 19:18:36 PDT 2025

Total time taken to generate the page: 0.00496 seconds