hardcoding NDIM in the generated code for MPI