Changeset 9fc7e1 for src/comm/mpi
- Timestamp:
- Feb 10, 2012, 3:19:51 PM (14 years ago)
- Children:
- 322469
- Parents:
- 32ff22
- File:
-
- 1 edited
-
src/comm/mpi/settings.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/comm/mpi/settings.cpp
r32ff22 r9fc7e1 287 287 MPI_Comm_size(comm, &size); 288 288 289 int buffer[6*size]; 289 std::vector<int> buffer; 290 buffer.resize(6*size); 290 291 291 292 // Compute local offset for ghost cells … … 306 307 } 307 308 308 MPI_Allgather(MPI_IN_PLACE, 6, MPI_INT, buffer, 6, MPI_INT, comm);309 MPI_Allgather(MPI_IN_PLACE, 6, MPI_INT, &buffer.front(), 6, MPI_INT, comm); 309 310 310 311 if (insert_result.second) { … … 341 342 } 342 343 343 MPI_Allgather(MPI_IN_PLACE, 6, MPI_INT, buffer, 6, MPI_INT, comm);344 MPI_Allgather(MPI_IN_PLACE, 6, MPI_INT, &buffer.front(), 6, MPI_INT, comm); 344 345 345 346 if (insert_result.second) {
Note:
See TracChangeset
for help on using the changeset viewer.
