Fixing code generator for MPI+OpenCL in 3D