From: David Wells Date: Mon, 15 Feb 2021 03:26:29 +0000 (-0500) Subject: Add some more MPI datatypes. X-Git-Tag: v9.3.0-rc1~450^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f9776599555a1e3fff7d48984aba81f2efcf1e6;p=dealii.git Add some more MPI datatypes. These were all in MPI-2. --- diff --git a/include/deal.II/base/mpi.templates.h b/include/deal.II/base/mpi.templates.h index e429a076b4..0828261295 100644 --- a/include/deal.II/base/mpi.templates.h +++ b/include/deal.II/base/mpi.templates.h @@ -43,6 +43,30 @@ namespace Utilities /** * Return the corresponding MPI data type id for the argument given. */ + inline MPI_Datatype + mpi_type_id(const char *) + { + return MPI_CHAR; + } + + + + inline MPI_Datatype + mpi_type_id(const signed char *) + { + return MPI_SIGNED_CHAR; + } + + + + inline MPI_Datatype + mpi_type_id(const short *) + { + return MPI_SHORT; + } + + + inline MPI_Datatype mpi_type_id(const int *) { @@ -59,6 +83,22 @@ namespace Utilities + inline MPI_Datatype + mpi_type_id(const unsigned char *) + { + return MPI_UNSIGNED_CHAR; + } + + + + inline MPI_Datatype + mpi_type_id(const unsigned short *) + { + return MPI_UNSIGNED_SHORT; + } + + + inline MPI_Datatype mpi_type_id(const unsigned int *) {