Changeset 716da7 for src/comm/mpi/datatypes_local.hpp
- Timestamp:
- Apr 24, 2012, 2:26:14 PM (14 years ago)
- Children:
- b51c3b
- Parents:
- e3dbbf
- File:
-
- 1 edited
-
src/comm/mpi/datatypes_local.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/comm/mpi/datatypes_local.hpp
re3dbbf r716da7 24 24 DatatypesLocal(const Grid& grid, const MPI_Comm& comm) 25 25 { 26 InitDatatypesLocal(grid, comm );26 InitDatatypesLocal(grid, comm, true); 27 27 } 28 28 29 29 DatatypesLocal(const VMG::Particle::LinkedCellList& grid, const MPI_Comm& comm) 30 30 { 31 InitDatatypesLocal(grid, comm );31 InitDatatypesLocal(grid, comm, false); 32 32 } 33 33 34 34 ~DatatypesLocal() {} 35 35 36 std::vector<Datatype>& Halo() {return halo;}37 std::vector<Datatype>& NB() {return nb;}36 std::vector<Datatype>& Halo() {return _halo;} 37 std::vector<Datatype>& NB() {return _nb;} 38 38 39 const std::vector<Datatype>& Halo() const {return halo;} 40 const std::vector<Datatype>& NB() const {return nb;} 39 const std::vector<Datatype>& Halo() const {return _halo;} 40 const std::vector<Datatype>& NB() const {return _nb;} 41 42 const std::vector<Index>& Offset() const {return _offset;} 41 43 42 44 private: 43 std::vector<Datatype> halo, nb; 45 template <class T> 46 void InitDatatypesLocal(const T& grid, const MPI_Comm& comm, const bool& alloc_buffer); 44 47 45 template <class T>46 void InitDatatypesLocal(const T& grid, const MPI_Comm& comm);48 std::vector<Datatype> _halo, _nb; 49 std::vector<Index> _offset; 47 50 }; 48 51
Note:
See TracChangeset
for help on using the changeset viewer.
