if self.getDefaultLanguage() == 'C':
mpitypes.extend([('MPI_C_DOUBLE_COMPLEX', 'c-double-complex')])

Why don't we check for this regardless of C language? The C and C++ types
are binary compatible and there is an advantage to using the predefined
data types: it lets us also use the predefined MPI_Ops, which would let us
use MPIU_SUM with PetscSF (and possibly use more optimized reduction
implementations in other cases).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120423/7856676e/attachment.html>

Reply via email to