ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/brains/SimCreator.cpp
(Generate patch)

Comparing trunk/src/brains/SimCreator.cpp (file contents):
Revision 1969 by gezelter, Wed Feb 26 14:14:50 2014 UTC vs.
Revision 1971 by gezelter, Fri Feb 28 13:25:13 2014 UTC

# Line 113 | Line 113 | namespace OpenMD {
113   #ifdef IS_MPI            
114          //broadcasting the stream size
115          streamSize = ppStream.str().size() +1;
116 <        MPI_Bcast(&streamSize, 1, MPI_LONG, masterNode, MPI_COMM_WORLD);
116 >        MPI_Bcast(&streamSize, 1, MPI_INT, masterNode, MPI_COMM_WORLD);
117          MPI_Bcast(static_cast<void*>(const_cast<char*>(ppStream.str().c_str())),
118                    streamSize, MPI_CHAR, masterNode, MPI_COMM_WORLD);
119  
# Line 127 | Line 127 | namespace OpenMD {
127          // MPI::COMM_WORLD.Bcast(&mdFileVersion, 1, MPI::INT, masterNode);
128  
129          //get stream size
130 <        MPI_Bcast(&streamSize, 1, MPI_LONG, masterNode, MPI_COMM_WORLD);
130 >        MPI_Bcast(&streamSize, 1, MPI_INT, masterNode, MPI_COMM_WORLD);
131          // MPI::COMM_WORLD.Bcast(&streamSize, 1, MPI::LONG, masterNode);
132          char* buf = new char[streamSize];
133          assert(buf);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines