[petsc-dev] mpiuni and definitions of MPI_IDENT, MPI_CONGRUENT, MPI_SIMILAR

Satish Balay balay at mcs.anl.gov
Thu Jul 8 11:38:12 CDT 2010


pushed to petsc-dev

thanks,
satish

On Thu, 8 Jul 2010, Lisandro Dalcin wrote:

> include/mpiuni/mpi.h has this:
> 
> #define MPI_IDENT            0
> #define MPI_CONGRUENT        0
> #define MPI_SIMILAR          0
> #define MPI_UNEQUAL          3
> 
> These definitions caused duplicate case value errors in
> Cython-generated code using C switch statement. I've already pushed a
> workaround, but perhaps you could consider defining like below:
> 
> #define MPI_IDENT            0
> #define MPI_CONGRUENT        1
> #define MPI_SIMILAR          2
> #define MPI_UNEQUAL          3
> 
> 
> PS: This should go to petsc-dev in order to avoid a potential ABI
> breakage in petsc-3.1
> 
> 




More information about the petsc-dev mailing list