spit different versions of mpiStageDistributeEyeRays into two functions. fixed an error. the code is now working.