[Mpi-comments] Bug in example 7.9 about neighbourhood collectives

Daniel Holmes dholmes at epcc.ed.ac.uk
Tue Jan 26 07:59:28 CST 2016


In Figure 7.2 (part of example 7.9, in section 7.6, page 330, line 18), 
the call to "MPI_DIMS_CREATE" is erroneous because the first parameter 
is given as "comm" rather than "comm_size". To pass "comm_size", the 
example would need an extra variable declaration and an extra line of 
code (between lines 17 and 18) that calls the "MPI_COMM_SIZE" function.

Cheers,
Dan.

-- 
Dan Holmes
Applications Consultant in HPC Research
EPCC, The University of Edinburgh
James Clerk Maxwell Building
The Kings Buildings
Peter Guthrie Tait Road
Edinburgh
EH9 3FD
T: +44(0)131 651 3465
E: dholmes at epcc.ed.ac.uk

*Please consider the environment before printing this email.*


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




More information about the mpi-comments mailing list