comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Passing variables

Passing variables
type: item
description: 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.
creator: jeffwax1
date: 2007-08-22T20:07:44-00:00