ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/SimInfo.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/SimInfo.cpp (file contents):
Revision 1097 by gezelter, Mon Apr 12 20:32:20 2004 UTC vs.
Revision 1108 by tim, Wed Apr 14 15:37:41 2004 UTC

# Line 382 | Line 382 | int SimInfo::getNDFtranslational() {
382  
383    return ndfTrans;
384   }
385 +
386 + int SimInfo::getTotIntegrableObjects() {
387 +  int nObjs_local;
388 +  int nObjs;
389 +
390 +  nObjs_local =  integrableObjects.size();
391  
392 +
393 + #ifdef IS_MPI
394 +  MPI_Allreduce(&nObjs_local,&nObjs,1,MPI_INT,MPI_SUM, MPI_COMM_WORLD);
395 + #else
396 +  nObjs = nObjs_local;
397 + #endif
398 +
399 +
400 +  return nObjs;
401 + }
402 +
403   void SimInfo::refreshSim(){
404  
405    simtype fInfo;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines