The CVAR example in the official 3.1 document Section 14.3 (MPI Tool CVAR) page 577 compiles but doesn¹t do the expected work. One must change the || at line 7 into && to have it perform as advertised.
Replace page 577 line 7:
if (err!=MPI_SUCCESS || err!=MPI_T_ERR_INVALID_INDEX) return err;
with
if (err!=MPI_SUCCESS && err!=MPI_T_ERR_INVALID_INDEX) return err;
The CVAR example in the official 3.1 document Section 14.3 (MPI Tool CVAR) page 577 compiles but doesn¹t do the expected work. One must change the || at line 7 into && to have it perform as advertised.
Replace page 577 line 7:
if (err!=MPI_SUCCESS || err!=MPI_T_ERR_INVALID_INDEX) return err;
with
if (err!=MPI_SUCCESS && err!=MPI_T_ERR_INVALID_INDEX) return err;
Should this be an errata item, or ticket 0?