From: David Wells Date: Sun, 29 May 2016 02:39:40 +0000 (-0400) Subject: Move an MPI function into a source file. X-Git-Tag: v8.5.0-rc1~995^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88aee48d348ef105adcc8701e653d74f33113b1c;p=dealii.git Move an MPI function into a source file. --- 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