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 1113 by tim, Thu Apr 15 16:18:26 2004 UTC

# Line 322 | Line 322 | int SimInfo::getNDF(){
322   int SimInfo::getNDF(){
323    int ndf_local;
324  
325 +  ndf_local = 0;
326 +  
327    for(int i = 0; i < integrableObjects.size(); i++){
328      ndf_local += 3;
329      if (integrableObjects[i]->isDirectional())
# Line 350 | Line 352 | int SimInfo::getNDFraw() {
352    int ndfRaw_local;
353  
354    // Raw degrees of freedom that we have to set
355 +  ndfRaw_local = 0;
356  
357    for(int i = 0; i < integrableObjects.size(); i++){
358      ndfRaw_local += 3;
# Line 381 | Line 384 | int SimInfo::getNDFtranslational() {
384    ndfTrans = ndfTrans - 3 - nZconstraints;
385  
386    return ndfTrans;
387 + }
388 +
389 + int SimInfo::getTotIntegrableObjects() {
390 +  int nObjs_local;
391 +  int nObjs;
392 +
393 +  nObjs_local =  integrableObjects.size();
394 +
395 +
396 + #ifdef IS_MPI
397 +  MPI_Allreduce(&nObjs_local,&nObjs,1,MPI_INT,MPI_SUM, MPI_COMM_WORLD);
398 + #else
399 +  nObjs = nObjs_local;
400 + #endif
401 +
402 +
403 +  return nObjs;
404   }
405  
406   void SimInfo::refreshSim(){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines