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

Contents of /branches/split/escriptcore/src/SubWorld.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4730 - (show annotations)
Mon Mar 10 00:24:45 2014 UTC (4 years, 11 months ago) by jfenwick
File MIME type: text/plain
File size: 1149 byte(s)
Some missing files
1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2014 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17 #ifndef escript_SubWorld_H
18 #define escript_SubWorld_H
19
20 #include "esysUtils/Esys_MPI.h"
21 #include "AbstractDomain.h"
22
23 namespace escript
24 {
25
26 /** class to hold a collection of MPI ranks and a communicator linking them
27 */
28 class SubWorld : public boost::enable_shared_from_this<SubWorld>
29 {
30 public:
31 SubWorld(MPI_Comm comm);
32 ~SubWorld();
33 void setDomain(Domain_ptr d);
34 Domain_ptr getDomain();
35 MPI_Comm getComm();
36 private:
37 MPI_Comm communicator;
38 escript::Domain_ptr domain;
39 };
40
41 typedef boost::shared_ptr<SubWorld> SubWorld_ptr;
42
43
44
45 }
46 #endif

  ViewVC Help
Powered by ViewVC 1.1.26