NEOCCA bindings Specification  0.2.8
MPIBorrow.hh
Go to the documentation of this file.
1 #ifndef neoMPIBorrow_h_seen
2 #define neoMPIBorrow_h_seen
3 
4 //requires:
5 //#include <neocca.h>
6 //#include <mpi.h>
7 #ifdef MPI_COMM_NULL // this file is empty if mpi.h is not included
8 
9 namespace neo {
10 namespace cca {
11 namespace ports {
12 
13 
18 class MPIBorrow : public virtual neo::cca::Port {
19 
20 public:
21 
22 
24  virtual ~MPIBorrow() {}
25 
39  virtual MPI_Comm borrowComm(int tagCount, int *tagList, int &key)= 0;
40 
48  virtual void returnComm(MPI_Comm, int tagCount, int *tagList, int key)= 0;
49 };
50 
51 } // end namespace ports
52 } // end namespace cca
53 } // end namespace neo
54 
55 #endif // MPI_CONGRUENT
56 
57 #endif // neoMPIBorrow_h_seen
A pure-virtual tag interface to identify a function set capable of being exported to or imported from...
Definition: Port.hh:17
This is neoclassic – the ::classic::gov::cca headers updated to be similar to the official CCA speci...
Definition: neocca.hh:62