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

Comparing trunk/OOPSE-2.0/src/brains/SimInfo.cpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 2000 by tim, Fri Feb 11 22:41:02 2005 UTC

# Line 56 | Line 56
56   #include "UseTheForce/notifyCutoffs_interface.h"
57   #include "utils/MemoryUtils.hpp"
58   #include "utils/simError.h"
59 + #include "selection/SelectionManager.hpp"
60  
61   #ifdef IS_MPI
62   #include "UseTheForce/mpiComponentPlan.h"
# Line 72 | Line 73 | SimInfo::SimInfo(std::vector<std::pair<MoleculeStamp*,
73                                  nGlobalIntegrableObjects_(0), nGlobalRigidBodies_(0),
74                                  nAtoms_(0), nBonds_(0),  nBends_(0), nTorsions_(0), nRigidBodies_(0),
75                                  nIntegrableObjects_(0),  nCutoffGroups_(0), nConstraints_(0),
76 <                                sman_(NULL), fortranInitialized_(false) {
76 >                                sman_(NULL), fortranInitialized_(false), selectMan_(NULL) {
77  
78              
79      std::vector<std::pair<MoleculeStamp*, int> >::iterator i;
# Line 108 | Line 109 | SimInfo::SimInfo(std::vector<std::pair<MoleculeStamp*,
109  
110          //calculate atoms in rigid bodies
111          int nAtomsInRigidBodies = 0;
112 <        int nRigidBodiesInStamp = molStamp->getNCutoffGroups();
112 >        int nRigidBodiesInStamp = molStamp->getNRigidBodies();
113          
114          for (int j=0; j < nRigidBodiesInStamp; j++) {
115              rbStamp = molStamp->getRigidBody(j);
# Line 137 | Line 138 | SimInfo::SimInfo(std::vector<std::pair<MoleculeStamp*,
138   #ifdef IS_MPI    
139      molToProcMap_.resize(nGlobalMols_);
140   #endif
141 <    
141 >
142 >    selectMan_ = new SelectionManager(this);
143 >    selectMan_->selectAll();
144   }
145  
146   SimInfo::~SimInfo() {
# Line 148 | Line 151 | SimInfo::~SimInfo() {
151      delete sman_;
152      delete simParams_;
153      delete forceField_;
154 <
154 >    delete selectMan_;
155   }
156  
157   int SimInfo::getNGlobalConstraints() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines