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

Home » Public Forums » archive » Passing variables
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
Passing variables [message #55453] Wed, 22 August 2007 13:07
jeffwax1 is currently offline  jeffwax1
Messages: 10
Registered: June 2004
Junior Member
I am having an issue passing variables from one program to another.


I have a main program with a gigantic for loop. Each time through the
loop there is a different value from a "B" array. Inside the loop I
use rk4 to create fieldlines, with the derivatives ("dydx") calculated
in another program. rk4 only allows you to give it a vector (say
Xo,Yo) and it gives you back another vector (say X1,Y1). But I need,
somehow to pass the value from my "B" array to the second program (the
one that returns the "dydx").

I tried putting a procedure in the middle of my main program along the
lines of:

pro getb,dummy
return, [B(n)]
end

and then in the dydx program had a line with:

myB = getb(0)

But that didn't seem to work. Does anyone know an easy way to pass
this B variable into this second program?

Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: strings and memory usage
Next Topic: Reading Landsat FAST data in ENVI

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

Current Time: Fri Oct 10 08:10:44 PDT 2025

Total time taken to generate the page: 0.56229 seconds