Changeset 290aa3


Ignore:
Timestamp:
Jun 11, 2012, 4:20:50 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
ef94e7
Parents:
a24b80
Message:

Bugfix in CommMPI::GlobalBroadcast(char* str).

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1874 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/comm/comm_mpi.cpp

    ra24b80 r290aa3  
    293293void CommMPI::GlobalBroadcast(char* str)
    294294{
    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);
    296298}
    297299
Note: See TracChangeset for help on using the changeset viewer.