OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
NoCommTopology.h
Go to the documentation of this file.
1 #ifndef __NO_COMM_TOPOLOGY__
2 #define __NO_COMM_TOPOLOGY__
3 
4 #include "mpi.h"
7 
9 class NoCommTopology : public CommTopology {
10 
11 public:
12 
13  NoCommTopology(MPI_Comm comm = MPI_COMM_WORLD)
14  : CommTopology(comm)
15  {}
16 
17  virtual ~NoCommTopology()
18  {}
19 
20  void discover() {
21  throw OptPilotException("NoCommTopology::discoverTopology()",
22  "No topology policy selected!");
23  }
24 
25 };
26 
27 #endif
NoCommTopology(MPI_Comm comm=MPI_COMM_WORLD)
virtual ~NoCommTopology()
Specifies interface for topology policies.
Definition: CommTopology.h:9
Simple policy when no topology is available or needed.
Definition: NoCommTopology.h:9
void discover()
every implementation must provide a discover method