From 5bfcf4cd2c727b583dca36375b5866a130fc9b1d Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Fri, 22 Jun 2012 17:28:31 +0200 Subject: [PATCH] Moving MpiNode into MpiNode.h --- eo/src/mpi/MpiNode.h | 25 +++++++++++++++++++++++++ eo/src/mpi/eompi.h | 24 +----------------------- 2 files changed, 26 insertions(+), 23 deletions(-) create mode 100644 eo/src/mpi/MpiNode.h diff --git a/eo/src/mpi/MpiNode.h b/eo/src/mpi/MpiNode.h new file mode 100644 index 00000000..10804ce0 --- /dev/null +++ b/eo/src/mpi/MpiNode.h @@ -0,0 +1,25 @@ +# ifndef __MPI_NODE_H__ +# define __MPI_NODE_H__ + +# include +namespace mpi = boost::mpi; + +class MpiNode +{ + public: + + static void init( int argc, char** argv ) + { + static mpi::environment env( argc, argv ); + } + + static mpi::communicator& comm() + { + return _comm; + } + + protected: + static mpi::communicator _comm; +}; + +# endif // __MPI_NODE_H__ diff --git a/eo/src/mpi/eompi.h b/eo/src/mpi/eompi.h index 44cdbb1a..3b51e7a3 100644 --- a/eo/src/mpi/eompi.h +++ b/eo/src/mpi/eompi.h @@ -3,12 +3,9 @@ # include # include - -# include -namespace mpi = boost::mpi; - # include +# include "MpiNode.h" # include "assignmentAlgorithm.h" // TODO TODOB comment! @@ -25,25 +22,6 @@ namespace EoMpi const int Finish = 1; } } - -class MpiNode -{ - public: - - static void init( int argc, char** argv ) - { - static mpi::environment env( argc, argv ); - } - - static mpi::communicator& comm() - { - return _comm; - } - - protected: - static mpi::communicator _comm; -}; - class MpiJob { public: