| Line | |
|---|
| 1 | #ifndef DATATYPES_LOCAL_HPP_
|
|---|
| 2 | #define DATATYPES_LOCAL_HPP_
|
|---|
| 3 |
|
|---|
| 4 | #include <vector>
|
|---|
| 5 |
|
|---|
| 6 | #include "comm/mpi/datatype.hpp"
|
|---|
| 7 |
|
|---|
| 8 | namespace VMG
|
|---|
| 9 | {
|
|---|
| 10 |
|
|---|
| 11 | class Grid;
|
|---|
| 12 |
|
|---|
| 13 | namespace MPI
|
|---|
| 14 | {
|
|---|
| 15 |
|
|---|
| 16 | class DatatypesLocal
|
|---|
| 17 | {
|
|---|
| 18 | public:
|
|---|
| 19 |
|
|---|
| 20 | DatatypesLocal(const Grid& grid, const MPI_Comm& comm);
|
|---|
| 21 | ~DatatypesLocal() {}
|
|---|
| 22 |
|
|---|
| 23 | std::vector<Datatype>& Halo() {return halo;}
|
|---|
| 24 | std::vector<Datatype>& NB() {return nb;}
|
|---|
| 25 |
|
|---|
| 26 | const std::vector<Datatype>& Halo() const {return halo;}
|
|---|
| 27 | const std::vector<Datatype>& NB() const {return nb;}
|
|---|
| 28 |
|
|---|
| 29 | private:
|
|---|
| 30 | std::vector<Datatype> halo, nb;
|
|---|
| 31 | };
|
|---|
| 32 |
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | #endif /* DATATYPES_LOCAL_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.