source: src/comm/mpi/datatypes_global.hpp@ 894a5f

Last change on this file since 894a5f was 894a5f, checked in by Julian Iseringhausen <isering@…>, 14 years ago

Parallel performance update.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1314 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 1.0 KB
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
18namespace VMG
19{
20
21namespace MPI
22{
23
24class DatatypesGlobal
25{
26public:
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
41private:
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.