execute(T* val, int pos [], T* srcDat)The arguments are the addresses to which the result value and location should be written, and the base address of the local segment of the source array. The latter should point to a vector of the locally held elements.
The size of the pos vector must be equal to the rank of the source array.