OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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
10
11public:
12
13 NoCommTopology(MPI_Comm comm = MPI_COMM_WORLD)
14 : CommTopology(comm)
15 {}
16
18 {}
19
20 void discover() {
21 throw OptPilotException("NoCommTopology::discoverTopology()",
22 "No topology policy selected!");
23 }
24
25};
26
27#endif
Specifies interface for topology policies.
Definition: CommTopology.h:9
Simple policy when no topology is available or needed.
Definition: NoCommTopology.h:9
NoCommTopology(MPI_Comm comm=MPI_COMM_WORLD)
virtual ~NoCommTopology()
void discover()
every implementation must provide a discover method