| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @file datatypes_global.hpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Mon Jan 2 18:45:22 2012
|
|---|
| 5 | *
|
|---|
| 6 | * @brief Stores some CommSubgrid related information in order to minimize
|
|---|
| 7 | * the communication in this routine.
|
|---|
| 8 | *
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | #ifndef DATATYPES_GLOBAL_HPP_
|
|---|
| 12 | #define DATATYPES_GLOBAL_HPP_
|
|---|
| 13 |
|
|---|
| 14 | #include <vector>
|
|---|
| 15 |
|
|---|
| 16 | #include "comm/mpi/datatype.hpp"
|
|---|
| 17 |
|
|---|
| 18 | namespace VMG
|
|---|
| 19 | {
|
|---|
| 20 |
|
|---|
| 21 | namespace MPI
|
|---|
| 22 | {
|
|---|
| 23 |
|
|---|
| 24 | class DatatypesGlobal
|
|---|
| 25 | {
|
|---|
| 26 | public:
|
|---|
| 27 | DatatypesGlobal() {}
|
|---|
| 28 | ~DatatypesGlobal() {}
|
|---|
| 29 |
|
|---|
| 30 | typedef std::vector<Datatype>::iterator iterator;
|
|---|
| 31 | typedef std::vector<Datatype>::const_iterator const_iterator;
|
|---|
| 32 | typedef std::vector<Datatype>::reverse_iterator reverse_iterator;
|
|---|
| 33 | typedef std::vector<Datatype>::const_reverse_iterator const_reverse_iterator;
|
|---|
| 34 |
|
|---|
| 35 | std::vector<Datatype>& Send() {return send;}
|
|---|
| 36 | const std::vector<Datatype>& Send() const {return send;}
|
|---|
| 37 |
|
|---|
| 38 | std::vector<Datatype>& Receive() {return recv;}
|
|---|
| 39 | const std::vector<Datatype>& Receive() const {return recv;}
|
|---|
| 40 |
|
|---|
| 41 | private:
|
|---|
| 42 | std::vector<Datatype> send, recv;
|
|---|
| 43 | };
|
|---|
| 44 |
|
|---|
| 45 | }
|
|---|
| 46 |
|
|---|
| 47 | }
|
|---|
| 48 |
|
|---|
| 49 | #endif /* DATATYPES_GLOBAL_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.