From 14364a03bd5064bde3d7eefac31fcb6303f2c995 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 3 Mar 2017 20:50:21 +0100 Subject: [PATCH] Mark functions inline to fix tests mpi/renumber_cuthill_mckee in static build --- include/deal.II/base/mpi.templates.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; } -- 2.39.5