I have some data stored within a multi-dimensional global array using pilotscript.
When I try to use the array within a subprotocol that is being run in parallel, the dimensions of the global array are "flattened" .
eg, at the start of the protocol, the global array is defined as:
resize(@mydata, 4,4);
inside, the subprotocol, when run in parallel, the following command yields a value of 16:
ArrayGetDimensions := ArrayGetDimensions(@mydata);
outside the parallel subprotocol, ie gives an array value of (4,4)
I am using plp v2019.
Is there a workaround to ensure that my global arrays keep their correct dimensions? Or do I just wait until we are upgraded to v2022?
Thanks,
Ian
P.S. When the subprotocol is not run in parallel, the array dimensions remain correct.
P.P.S. Outside the parallel subprotocol, the array dimensions are not touched.
