[mpi-forum] Error in RMA examples?

Lisandro Dalcin dalcinl at gmail.com
Fri Feb 8 09:06:26 CST 2008

Can someone take a look at the second example in:


and also to the example in:


I believe in both cases the lines saying

  j = map(i)/p
  k = MOD(map(i),p)

should read

  j = map(i)/m
  k = MOD(map(i),m)

Additionally, in the first example again in:


in the part where origin and target indices are computed, there are
two lines reading:

  oindex(total(j) + count(j)) = i
  tindex(total(j) + count(j)) = k

Should'nt it read like this (for indices being zero-based)?

  oindex(total(j) + count(j)) = i  - 1
  tindex(total(j) + count(j)) = k - 1


Lisandro Dalcín
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594

More information about the mpi-forum mailing list