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

Comparing trunk/src/io/DumpWriter.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 304 | Line 304 | namespace OpenMD {
304    void DumpWriter::writeFrame(std::ostream& os) {
305  
306   #ifdef IS_MPI
307 <    MPI_Status* istatus;
307 >    MPI_Status istatus;
308   #endif
309  
310      Molecule* mol;
# Line 397 | Line 397 | namespace OpenMD {
397          // prepared by processor i:        
398          int recvLength;
399          MPI_Recv(&recvLength, 1, MPI_INT, i, MPI_ANY_TAG, MPI_COMM_WORLD,
400 <                 istatus);
400 >                 &istatus);
401  
402          // create a buffer to receive the data
403          char* recvBuffer = new char[recvLength];
# Line 405 | Line 405 | namespace OpenMD {
405          } else {
406            // receive the data:
407            MPI_Recv(recvBuffer, recvLength, MPI_CHAR, i,
408 <                               MPI_ANY_TAG, MPI_COMM_WORLD, istatus);
408 >                               MPI_ANY_TAG, MPI_COMM_WORLD, &istatus);
409            // send it to the file:
410            os << recvBuffer;
411            // get rid of the receive buffer:
# Line 474 | Line 474 | namespace OpenMD {
474            // prepared by processor i:        
475            int recvLength;
476            MPI_Recv(&recvLength, 1, MPI_INT, i, MPI_ANY_TAG, MPI_COMM_WORLD,
477 <                   istatus);
477 >                   &istatus);
478            
479            // create a buffer to receive the data
480            char* recvBuffer = new char[recvLength];
# Line 482 | Line 482 | namespace OpenMD {
482            } else {
483              // receive the data:
484              MPI_Recv(recvBuffer, recvLength, MPI_CHAR, i,
485 <                     MPI_ANY_TAG, MPI_COMM_WORLD, istatus);
485 >                     MPI_ANY_TAG, MPI_COMM_WORLD, &istatus);
486              // send it to the file:
487              os << recvBuffer;
488              // get rid of the receive buffer:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines