In my previous blog entry, I answered a user question about how MPI defines its global constants, specifically in the context of interactions with other languages. I went beyond that answer, and also ...
Loosely speaking, MPI_Cart_shift is used to find two “nearby” /* create cartesian topology for processes */ dims[0] = nrow; /* number of rows */ dims[1] = mcol ...
call MPI_Cart_create(old_comm,ndims,dim_size, & periods,reorder,new_comm,ierr) ! creates communicator if(Iam .eq. root) then !! only want to do this on one process do ...