Changeset 97c25dd for src/comm/mpi/comm_info.cpp
- Timestamp:
- Dec 8, 2011, 12:53:58 PM (14 years ago)
- Children:
- 76e019
- Parents:
- 1610dc
- File:
-
- 1 edited
-
src/comm/mpi/comm_info.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/comm/mpi/comm_info.cpp
r1610dc r97c25dd 20 20 21 21 #include "base/index.hpp" 22 #include "base/timer.hpp" 22 23 #include "comm/mpi/comm_info.hpp" 23 24 #include "grid/grid.hpp" … … 129 130 MPI_Datatype VMG::MPI::CommInfo::GetDatatypeSubarray(const Index& begin, const Index& end, const Index& size_total) 130 131 { 131 std::map<Key, MPI_Datatype>::iterator iter = datatypes.find(Key(begin, end, size_total)); 132 133 if (iter != datatypes.end()) 132 const Key k = Key(begin, end, size_total); 133 134 std::map<Key, MPI_Datatype>::const_iterator iter = datatypes.lower_bound(k); 135 136 if (iter != datatypes.end() && !(datatypes.key_comp()(k, iter->first))) 134 137 return iter->second; 135 138 … … 143 146 MPI_Type_commit(&dt); 144 147 148 datatypes.insert(std::make_pair(k, dt)); 149 145 150 return dt; 146 151 }
Note:
See TracChangeset
for help on using the changeset viewer.
