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

Comparing branches/new_design/OOPSE-2.0/src/brains/SimInfo.cpp (file contents):
Revision 1734 by tim, Fri Nov 12 06:19:04 2004 UTC vs.
Revision 1735 by tim, Fri Nov 12 17:40:03 2004 UTC

# Line 544 | Line 544 | void SimInfo::setupFortranSim() {
544          }
545      }    
546  
547 +    //fill molMembershipArray
548 +    //molMembershipArray is filled by SimCreator    
549 +    std::vector<int> molMembershipArray(nGlobalAtoms_);
550 +    for (int i = 0; i < nGlobalAtoms_; i++) {
551 +        molMembershipArray.push_back(globalMolMembership_[i] + 1);
552 +    }
553 +    
554      //setup fortran simulation
555      //gloalExcludes and molMembershipArray should go away (They are never used)
556      //why the hell fortran need to know molecule?
# Line 626 | Line 633 | void SimInfo::setupFortranParallel() {
633  
634  
635   }
636 +
637 + #endif
638 +
639 + double SimInfo::calcMaxCutoffRadius() {
640 +
641 +
642 +    std::vector<AtomType*> atomTypes;
643 +    std::vector<AtomType*>::iterator i;
644 +    std::vector<double> cutoffRadius;
645  
646 +    //get the unique atom types
647 +    atomTypes = getUniqueAtomTypes();
648 +
649 +    //query the max cutoff radius among these atom types
650 +    for (i = atomTypes.begin(); i != atomTypes.end(); ++i) {
651 +        cutoffRadius.push_back(forceField_->getRcutFromAtomType(*i));
652 +    }
653 +
654 +    double maxCutoffRadius = std::max_element(cutoffRadius.begin(), cutoffRadius.end());
655 + #ifdef IS_MPI
656 +    //pick the max cutoff radius among the processors
657   #endif
658  
659 +    return maxCutoffRadius;
660 + }
661 +
662   void SimInfo::addProperty(GenericData* genData) {
663      properties_.addProperty(genData);  
664   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines