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

Home » Public Forums » archive » Re: how to rerun subroutine only?
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: how to rerun subroutine only? [message #42721] Mon, 21 February 2005 14:52 Go to previous message
u2s5thmember is currently offline  u2s5thmember
Messages: 11
Registered: January 2004
Junior Member
Your idea helped me figure out exactly what I was looking for! This
allows me to reduce the time for this subroutine to recalculate some
equations by 99.8%! I would have the subroutine as its own file, but
the main program and all its prior subroutines generate the arrays used
by the subroutine in question. I knew there had to be a way to do this
more efficiently - THANKS!

Vinay L. Kashyap wrote:
> Depends..
>
> There is no way to move flow control to the beginning of the
> program (that I know of), but if simple debugging is all you
> want to do, then yes.
>
> First get out of the subroutine with a ".out" or a "return" or
> a "return,-1", then recompile that subroutine (if it is in a
> separate file; this won't work if subroutine is in the same file
> as the main program), and simply call it with the same calling
> sequence as you did in the main program. Make sure you feed it
> the right variables in the parameters, because they may have
> changed in value or property in the interim.
>
> Vinay
> --
>
____________________________________________________________ __________________
> kashyap@head.cfa.harvard.edu 617 495 7173 [CfA/P-145] 617 496
7173 [F]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: tick label problem
Next Topic: widget_base alignment question

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

Current Time: Sat Oct 11 14:36:07 PDT 2025

Total time taken to generate the page: 1.52074 seconds