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

Comparing trunk/OOPSE-2.0/src/brains/SimCreator.cpp (file contents):
Revision 2120 by tim, Fri Mar 11 17:50:11 2005 UTC vs.
Revision 2187 by tim, Wed Apr 13 18:41:17 2005 UTC

# Line 146 | Line 146 | namespace oopse {
146      compList(stamps, simParams, moleculeStampPairs);
147      
148      //create SimInfo
149 <    SimInfo * info = new SimInfo(moleculeStampPairs, ff, simParams);
150 <    
149 >    SimInfo * info = new SimInfo(stamps, moleculeStampPairs, ff, simParams);
150 >    
151      //gather parameters (SimCreator only retrieves part of the parameters)
152      gatherParameters(info, mdFileName);
153      
# Line 397 | Line 397 | namespace oopse {
397                              std::vector < std::pair<MoleculeStamp *, int> > &moleculeStampPairs) {
398      int i;
399      char * id;
400    LinkedMolStamp* extractedStamp = NULL;
400      MoleculeStamp * currentStamp;
401      Component** the_components = simParams->getComponents();
402      int n_components = simParams->getNComponents();
# Line 418 | Line 417 | namespace oopse {
417          }
418          
419          id = the_components[i]->getType();
420 <        
421 <        extractedStamp = stamps->extractMolStamp(id);
422 <        if (extractedStamp == NULL) {
420 >
421 >        currentStamp = stamps->getMolStamp(id);
422 >        if (currentStamp == NULL) {
423            sprintf(painCave.errMsg,
424                    "SimCreator error: Component \"%s\" was not found in the "
425                    "list of declared molecules\n", id);
# Line 429 | Line 428 | namespace oopse {
428            simError();
429          }
430          
432        currentStamp = extractedStamp->getStamp();
433        
434        
431          moleculeStampPairs.push_back(
432                                       std::make_pair(currentStamp, the_components[i]->getNMol()));
433        } //end for (i = 0; i < n_components; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines