Rambling question in reply while we are talking Kawasaki arrays. Lets say I am passing arguments into a sub routine program is it possible to pass an entire array into a subroutine or not. If it is possible how do you define the parameters to be an array and how do you use that argument in the subroutine.
If I am passing postions or reals I have to force the type when I call the sub routine for a position variable (& or #) but not for the real type. Then when I use that positional argument in the sub-routine I only use the arguments name with . infront of it but do notuse the & or # but the & or # are required in the definition.
I know I can pass a single element of an array but would like to pass an entire array. If it is possible to pass arrays I would expect the caller would have to also pass the max element num or only use predined sizes. The programmer can deal with that but is it possible to pass a reference to an entire arrray to a subroutine.
In the snippet below I would like to pass the 6 element array of reals rthis_xyz[0-5] for now that array is global.
Definition
x.findxyzminmax(.&xcheckpos,.firstpos)
Calling
CALL x.findxyzminmax(&xMypos,TRUE)
Using i.e. inside the routine
.PROGRAM x.findxyzminmax(.&xcheckpos,.firstpos)
;I would like to use a passed in array right here to hold the 6 real values from the position returned by this DECOMPOSE......
DECOMPOSE rthis_xyz[0] = .xcheckpos
IF (.firstpos==TRUE) THEN
;Do FirstPos TRUE stuff here
ELSE
;Do FirstPos FALSE stuff here
.END