[petsc-dev] Detecting MPI_C_DOUBLE_COMPLEX when clanguage!='C'

Jed Brown jedbrown at mcs.anl.gov
Mon Apr 23 19:51:25 CDT 2012


    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>


More information about the petsc-dev mailing list