ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/brains/SimInfo.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/brains/SimInfo.cpp (file contents):
Revision 1906 by tim, Tue Jan 4 22:18:36 2005 UTC vs.
Revision 1907 by tim, Thu Jan 6 22:31:07 2005 UTC

# Line 135 | Line 135 | SimInfo::~SimInfo() {
135  
136   }
137  
138 + int SimInfo::getNGlobalConstraints() {
139 +    int nGlobalConstraints;
140 + #ifdef IS_MPI
141 +    MPI_Allreduce(&nConstraints_, &nGlobalConstraints, 1, MPI_INT, MPI_SUM,
142 +                  MPI_COMM_WORLD);    
143 + #else
144 +    nGlobalConstraints =  nConstraints_;
145 + #endif
146 +    return nGlobalConstraints;
147 + }
148  
149   bool SimInfo::addMolecule(Molecule* mol) {
150      MoleculeIterator i;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines