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

Home » Public Forums » archive » Re: Uncaught PARTICLE_TRACE exception
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Uncaught PARTICLE_TRACE exception [message #39584 is a reply to message #39571] Thu, 27 May 2004 11:25 Go to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
"Ryan" <rab209@hotmail.com> wrote in message
news:f845cc9f.0405270943.1a586412@posting.google.com...
> Hi all,
>
> I'm using the PARTICLE_TRACE procedure to simulate a particle flow
> through a 3-D velocity field, which, in most cases, works well.
>
> However, on the rare occasion where the seeds don't go anywhere
> (usually due to the velocity vectors immediately pushing the seeds out
> of the simulation volume), the program crashes, and IDL tells me that
>
> % Array dimensions must be greater than 0.
>
> and it points me to the line where my PARTICLE_TRACE call is made.
> When examining the output values after the crash, the "Verts" and
> "Normals" arrays are fine, but the "Conn" parameter is undefined...
>
> Which makes me think that PARTICLE_TRACE needs to have at least one
> connecting line for it to work w/o crashing... which is unfortunate,
> since I can't .cont my way back afterwards, nor can I automatically
> predict if that would happen beforehand by looking at the data.
>
> Any ideas on if this is what's really happening and/or a workaround?
>
> Thanks much,
> Ryan

You are right about it not working when there are no lines to return.
This has already been found and fixed for IDL 6.1.
In 6.1, when there are no lines to return, the conn array is returned with
the contents [-1].
I'm sorry that I can't think of a good workaround.

Karl
[Message index]
 
Read Message
Read Message
Previous Topic: Re: X11 macOSX woes
Next Topic: Extremely Strange Program Behavior

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

Current Time: Fri Oct 10 15:19:09 PDT 2025

Total time taken to generate the page: 0.95585 seconds