Changeset 290aa3
- Timestamp:
- Jun 11, 2012, 4:20:50 PM (13 years ago)
- Children:
- ef94e7
- Parents:
- a24b80
- File:
-
- 1 edited
-
src/comm/comm_mpi.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/comm/comm_mpi.cpp
ra24b80 r290aa3 293 293 void CommMPI::GlobalBroadcast(char* str) 294 294 { 295 MPI_Bcast(str, std::strlen(str)+1, MPI_CHAR, 0, comm_global); 295 int size = std::strlen(str) + 1; 296 MPI_Bcast(&size, 1, MPI_INT, 0, comm_global); 297 MPI_Bcast(str, size, MPI_CHAR, 0, comm_global); 296 298 } 297 299
Note:
See TracChangeset
for help on using the changeset viewer.
