From 88aee48d348ef105adcc8701e653d74f33113b1c Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 28 May 2016 22:39:40 -0400 Subject: [PATCH] Move an MPI function into a source file. --- include/deal.II/base/mpi.h | 14 -------------- source/base/mpi.cc | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index 735c4b0731..634984f8b6 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -471,20 +471,6 @@ namespace Utilities internal::all_reduce(MPI_MIN, values, mpi_communicator, minima, N); } #endif - - - inline - bool job_supports_mpi () - { -#ifdef DEAL_II_WITH_MPI - int MPI_has_been_started = 0; - MPI_Initialized(&MPI_has_been_started); - - return (MPI_has_been_started > 0); -#else - return false; -#endif - } } // end of namespace MPI } // end of namespace Utilities diff --git a/source/base/mpi.cc b/source/base/mpi.cc index 4c86df4589..b9825a379a 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -507,8 +507,24 @@ namespace Utilities } #endif } -#include "mpi.inst" + + + + bool job_supports_mpi () + { +#ifdef DEAL_II_WITH_MPI + int MPI_has_been_started = 0; + MPI_Initialized(&MPI_has_been_started); + + return (MPI_has_been_started > 0); +#else + return false; +#endif } + + + +#include "mpi.inst" } // end of namespace MPI } // end of namespace Utilities -- 2.39.5