]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move an MPI function into a source file.
authorDavid Wells <wellsd2@rpi.edu>
Sun, 29 May 2016 02:39:40 +0000 (22:39 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Tue, 31 May 2016 15:45:49 +0000 (11:45 -0400)
include/deal.II/base/mpi.h
source/base/mpi.cc

index 735c4b073105c6bc486da0e8a488ef10da54c6cc..634984f8b64cb3fcaf5843ca5acd0894b03321dc 100644 (file)
@@ -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
 
index 4c86df4589461479a7b21d8e1cbda835ce238783..b9825a379acba13044f8ed433e5b7723affc726f 100644 (file)
@@ -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
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.