Passing variables [message #55453] |
Wed, 22 August 2007 13:07 |
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.
|
|
|