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

Comparing branches/new_design/OOPSE-4/src/brains/SimInfo.cpp (file contents):
Revision 1724 by tim, Tue Nov 9 23:11:39 2004 UTC vs.
Revision 1725 by tim, Wed Nov 10 22:01:06 2004 UTC

# Line 64 | Line 64 | bool SimInfo::addMolecule(Molecule* mol) {
64          nCutoffGroups_ += mol->getNCutoffGroups();
65          nConstraints_ += mol->getNConstraints();
66  
67 +        globalIndexToMol_.insert(make_pair(mol->getGlobalIndex(), mol));
68          return true;
69      } else {
70          return false;
# Line 85 | Line 86 | bool SimInfo::removeMolecule(Molecule* mol) {
86          nCutoffGroups_ -= mol->getNCutoffGroups();
87          nConstraints_ -= mol->getNConstraints();
88  
89 +        globalIndexToMol_.erase(mol->getGlobalIndex());
90          return true;
91      } else {
92          return false;
# Line 285 | Line 287 | void SimInfo::removeExcludePairs(Molecule* mol) {
287      }
288  
289   }
290 +
291 +
292 + void SimInfo::addMoleculeStamp(MoleculeStamp* molStamp, int nmol) {
293 +    int curStampId;
294  
295 +    //index from 0
296 +    curStampId = molStampIds_.size();
297  
298 +    moleculeStamps_.push_back(molStamp);
299 +    molStampIds_.insert(molStampIds_.end(), nmol, curStampId)
300 + }
301 +
302 + std::ostream& operator <<(ostream& o, SimInfo& info) {
303 +
304 +    return o;
305 + }
306 +
307   }//end namespace oopse

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines