This question is a sequel to an earlier question posted in Stackoverflow in the following link: Array specification at (1) has more than 7 dimensions in mpif-sizeof.h