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

Comparing trunk/src/brains/SimInfo.cpp (file contents):
Revision 1983 by gezelter, Tue Apr 15 20:36:19 2014 UTC vs.
Revision 1987 by gezelter, Thu Apr 17 19:07:31 2014 UTC

# Line 751 | Line 751 | namespace OpenMD {
751  
752      int nproc;
753      MPI_Comm_size( MPI_COMM_WORLD, &nproc);
754    // int nproc = MPI::COMM_WORLD.Get_size();
754  
755      // we need arrays to hold the counts and displacement vectors for
756      // all processors
# Line 761 | Line 760 | namespace OpenMD {
760      // fill the counts array
761      MPI_Allgather(&count_local, 1, MPI_INT, &counts[0],
762                    1, MPI_INT, MPI_COMM_WORLD);
764    // MPI::COMM_WORLD.Allgather(&count_local, 1, MPI::INT, &counts[0],
765    //                           1, MPI::INT);
763    
764      // use the processor counts to compute the displacement array
765      disps[0] = 0;    
# Line 779 | Line 776 | namespace OpenMD {
776      MPI_Allgatherv(&foundTypes[0], count_local, MPI_INT,
777                     &ftGlobal[0], &counts[0], &disps[0],
778                     MPI_INT, MPI_COMM_WORLD);
782    // MPI::COMM_WORLD.Allgatherv(&foundTypes[0], count_local, MPI::INT,
783    //                            &ftGlobal[0], &counts[0], &disps[0],
784    //                            MPI::INT);
779  
780      vector<int>::iterator j;
781  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines