Changeset 716da7 for src/comm/mpi/datatype.cpp
- Timestamp:
- Apr 24, 2012, 2:26:14 PM (14 years ago)
- Children:
- b51c3b
- Parents:
- e3dbbf
- File:
-
- 1 edited
-
src/comm/mpi/datatype.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/comm/mpi/datatype.cpp
re3dbbf r716da7 140 140 _tag_send = tag_send; 141 141 _tag_recv = tag_receive; 142 _buffer.resize(_subsizes.Product());143 142 144 143 if (_type != MPI_DATATYPE_NULL) … … 157 156 _tag_send = tag_send; 158 157 _tag_recv = tag_receive; 159 _buffer.resize(_subsizes.Product());160 158 161 159 if (_type != MPI_DATATYPE_NULL) … … 170 168 MPI_Type_create_subarray(3, _sizes.vec(), _subsizes.vec(), _starts.vec(), MPI_ORDER_C, MPI_DOUBLE, &_type); 171 169 MPI_Type_commit(&_type); 170 if (_alloc_buffer) 171 _buffer.resize(_subsizes.Product()); 172 172 }else { 173 173 _type = MPI_DATATYPE_NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
