From: Martin Kronbichler Date: Fri, 3 Mar 2017 19:50:21 +0000 (+0100) Subject: Mark functions inline to fix tests mpi/renumber_cuthill_mckee in static build X-Git-Tag: v8.5.0-rc1~76^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14364a03bd5064bde3d7eefac31fcb6303f2c995;p=dealii.git Mark functions inline to fix tests mpi/renumber_cuthill_mckee in static build --- diff --git a/include/deal.II/base/mpi.templates.h b/include/deal.II/base/mpi.templates.h index e67dc1fe87..5f0f5d0ed8 100644 --- a/include/deal.II/base/mpi.templates.h +++ b/include/deal.II/base/mpi.templates.h @@ -37,49 +37,49 @@ namespace Utilities /** * Return the corresponding MPI data type id for the argument given. */ - MPI_Datatype mpi_type_id (const int *) + inline MPI_Datatype mpi_type_id (const int *) { return MPI_INT; } - MPI_Datatype mpi_type_id (const long int *) + inline MPI_Datatype mpi_type_id (const long int *) { return MPI_LONG; } - MPI_Datatype mpi_type_id (const unsigned int *) + inline MPI_Datatype mpi_type_id (const unsigned int *) { return MPI_UNSIGNED; } - MPI_Datatype mpi_type_id (const unsigned long int *) + inline MPI_Datatype mpi_type_id (const unsigned long int *) { return MPI_UNSIGNED_LONG; } - MPI_Datatype mpi_type_id (const unsigned long long int *) + inline MPI_Datatype mpi_type_id (const unsigned long long int *) { return MPI_UNSIGNED_LONG_LONG; } - MPI_Datatype mpi_type_id (const float *) + inline MPI_Datatype mpi_type_id (const float *) { return MPI_FLOAT; } - MPI_Datatype mpi_type_id (const double *) + inline MPI_Datatype mpi_type_id (const double *) { return MPI_DOUBLE; } - MPI_Datatype mpi_type_id (const long double *) + inline MPI_Datatype mpi_type_id (const long double *) { return MPI_LONG_DOUBLE; }