/[escript]/branches/split/escriptcore/src/SplitWorld.h
ViewVC logotype

Diff of /branches/split/escriptcore/src/SplitWorld.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4733 by jfenwick, Mon Mar 10 04:20:03 2014 UTC revision 4734 by jfenwick, Mon Mar 10 06:38:54 2014 UTC
# Line 14  Line 14 
14  *  *
15  *****************************************************************************/  *****************************************************************************/
16    
17  #ifndef escript_WorldSplitter_H  #ifndef escript_SplitWorld_H
18  #define escript_WorldSplitter_H  #define escript_SplitWorld_H
19  #include <boost/python.hpp>  #include <boost/python.hpp>
20  #include <boost/smart_ptr.hpp>  #include <boost/smart_ptr.hpp>
21  #include "esysUtils/Esys_MPI.h"  #include "esysUtils/Esys_MPI.h"
# Line 25  namespace escript Line 25  namespace escript
25    
26  /** class to hold a collection of MPI ranks and a communicator linking them  /** class to hold a collection of MPI ranks and a communicator linking them
27  */  */
28  class WorldSplitter  class SplitWorld
29  {  {
30  public:  public:
31      WorldSplitter(unsigned int numgroups, MPI_Comm global=MPI_COMM_WORLD);      SplitWorld(unsigned int numgroups, MPI_Comm global=MPI_COMM_WORLD);
32      ~WorldSplitter();      ~SplitWorld();
33      boost::python::object buildDomains(boost::python::tuple t, boost::python::dict kwargs);      boost::python::object buildDomains(boost::python::tuple t, boost::python::dict kwargs);
34      // first param will be the factory method / constructor      // first param will be the factory method / constructor
35      // return value will always be None (it would be void but apparently boost doesn't like that      // return value will always be None (it would be void but apparently boost doesn't like that
36      // this method will be def("set....", raw_function(WorldSplitter::setDomainParams, 1)      // this method will be def("set....", raw_function(SplitWorld::setDomainParams, 1)
37            
38      void runJobs(boost::python::list l);      void runJobs(boost::python::list l);
39  private:      private:    
# Line 46  private: Line 46  private:
46    
47    
48  /**  /**
49    used to invoke the WorldSplitter version from python (in lieu of a method based equivalent to raw_function)    used to invoke the SplitWorld version from python (in lieu of a method based equivalent to raw_function)
50  */  */
51  boost::python::object raw_buildDomains(boost::python::tuple t, boost::python::dict kwargs);  boost::python::object raw_buildDomains(boost::python::tuple t, boost::python::dict kwargs);
52    

Legend:
Removed from v.4733  
changed lines
  Added in v.4734

  ViewVC Help
Powered by ViewVC 1.1.26